Hi!
Could someone please tell me what I'm missing in this piece of code:
DoCmd.OpenForm "frmAppsTesting", , , "[AppName] like '*' & [txtSearch] & '*'"
Basically, I have my search form. It has an unbound text box (txtSearch) and a button. The user puts in their search word in the text box and clicks the button and it pulls up the frmAppsTesting form. It should filter the form to show the records where their search word is in the AppName field.
When I put in a test word and click the button, a window comes up that says "txtSearch" and has a blank field. If I type my search word in again it will then pull up the form with the filtered records. What am I doing that causes that little window to pop up??
I'm sure the answer is really simple. Any help is greatly appreciated.
Thanks much!
Elizabeth
Could someone please tell me what I'm missing in this piece of code:
DoCmd.OpenForm "frmAppsTesting", , , "[AppName] like '*' & [txtSearch] & '*'"
Basically, I have my search form. It has an unbound text box (txtSearch) and a button. The user puts in their search word in the text box and clicks the button and it pulls up the frmAppsTesting form. It should filter the form to show the records where their search word is in the AppName field.
When I put in a test word and click the button, a window comes up that says "txtSearch" and has a blank field. If I type my search word in again it will then pull up the form with the filtered records. What am I doing that causes that little window to pop up??
I'm sure the answer is really simple. Any help is greatly appreciated.
Thanks much!
Elizabeth