Hi everyone, i have some problems.
At my form, there is a list of category code which i'm taken from middle of patient code(Mid([patient_cd],4,2). For example, category code is ST from 112STML(patient code). I use combo box for category code. If I want to see all patient records regardless of category code, definitely I just let combo box blank and straight away it will return all records. Unfortunately, it's not happen. Because there are some new data which does not relate with category code. For this situation, I'll return "Others" for data which have patient code that is not in category code. For example, I have 10 patient code, 8 of them are related to category code, but 2 of them that not,(112GTML and 112HLKP which GT and HL are new category ant not in category code that already exist. However, there is thousand of patient code which does not in category code that already exist.So, it is impossible to create new category code.
Code that i used:
Category code:Like [forms]![Patient].[ComboCtgory] & "*" And Mid([patient_cd],4,2).
Thanks.