thewrightdesign
Registered User.
- Local time
- Yesterday, 23:15
- Joined
- Sep 30, 2010
- Messages
- 85
I have a form set up that has several fields to search from. I created a separate form and included the most searched fields that we use. In the search query for that form, under criteria, I have the following code:
Forms!QBF_Form!StudentID Or Forms!QBF_Form!StudentID Is Null
also for fields with a wildcard:
Like Forms!QBF_Form!LastName & "*" Or Forms!QBF_Form!LastName Is Null
This works perfectly well and returns the results I want to be seeing. The problem is, after running this search even one time, the codes above do something really strange. They completely fill up the other cells in the search query, get out of order, and eventually the search returns a memory error telling me there is no more memory for this operation.
Am I missing some code that I need to add to the search form code perhaps? Or some code to add to the query criteria code to make it stop doing that?
Also I'd like for the search fields on the form to clear after each search, but right now the last thing typed into the form stays there so you have to manually remove it before every search. I know there should be simple code to fix that.
Thanks in advance!
Forms!QBF_Form!StudentID Or Forms!QBF_Form!StudentID Is Null
also for fields with a wildcard:
Like Forms!QBF_Form!LastName & "*" Or Forms!QBF_Form!LastName Is Null
This works perfectly well and returns the results I want to be seeing. The problem is, after running this search even one time, the codes above do something really strange. They completely fill up the other cells in the search query, get out of order, and eventually the search returns a memory error telling me there is no more memory for this operation.
Am I missing some code that I need to add to the search form code perhaps? Or some code to add to the query criteria code to make it stop doing that?
Also I'd like for the search fields on the form to clear after each search, but right now the last thing typed into the form stays there so you have to manually remove it before every search. I know there should be simple code to fix that.
Thanks in advance!
Last edited: