Ok.. I am narrowing this down finally... but still I have some problems.
In the Query it is doing something strange...
I put the following in "Criteria" for the field called "OrderNumber"
Like Forms![frmSearch]![OrderNumber] & "*" Or Forms![frmSearch]![OrderNumber] Is Null
(its all one line in access)
I run the query, it pops up a box asking for each criteria for the 6 fields I have made searchable. (which it shouldnt do)
I go back into design view of the query, it has removed everything after the "*"
I tried adding the stuff after "Or" to the 2nd line in Criteria that is labeled "Or:" but it ends up removing that also.
Is there something wrong with my query that causes this?
If I run the form that attaches to this query directly, I can enter a criteria in any one of the boxes and hit search, and have it bring up the proper data. but there is a problem...
This form needs to be inserted into a "Main Form" that has tabs. One of the tabs will house the "Search Form." The problem is... when I open that main form I get popup boxes asking for criteria in that query and if I go to the search tab I cannot get the Query to work.
I know that is long winded...
Basically what I would like to happen is have the subform not attempt to run its query unless the user hits the button to run it. I suspect part of the problem is the fact that it is removing that part of my query string for some reason.