Dear Access Expert
I wanted to use [Screen].[Activeform]![txtUserID] as a criteria on the query grid but to my dismay this always produced an Empty recordset.. After about 45 minutes of searching (grrrr) I found:
Like "*" & [Screen].[Activeform]![txtUserID] which works when I use it as a criteria in the query grid.
My question is why doesn't [Screen].[Activeform]![txtUserID] work on its own? Why do I have to use the Like "*" Statement?
Also the Above Like statement doesn't exactly do what I want. If my txtUserID control has "bcd" as its input the query can potentially show "Abcd" or "ABCbcd" etc... (DUE TO THE "*") when I only want it to show results "bcd"
I tried Like [Screen].[Activeform]![txtUserID] but again I only get an empty record set.
I am confused by this and would like to hear an explanation.
Thanks so much.
I wanted to use [Screen].[Activeform]![txtUserID] as a criteria on the query grid but to my dismay this always produced an Empty recordset.. After about 45 minutes of searching (grrrr) I found:
Like "*" & [Screen].[Activeform]![txtUserID] which works when I use it as a criteria in the query grid.
My question is why doesn't [Screen].[Activeform]![txtUserID] work on its own? Why do I have to use the Like "*" Statement?
Also the Above Like statement doesn't exactly do what I want. If my txtUserID control has "bcd" as its input the query can potentially show "Abcd" or "ABCbcd" etc... (DUE TO THE "*") when I only want it to show results "bcd"
I tried Like [Screen].[Activeform]![txtUserID] but again I only get an empty record set.
I am confused by this and would like to hear an explanation.
Thanks so much.
Last edited: