sorry, I am really new with Access. I don't quite understand what you mean. The only place I really have any code is on the query it self under criteria and under that I have:
Code:
Like "*" & [Forms]![SearchF]![BusinessName] & "*"
BusinessName being replaced with the other 14 text box names for the other search bars.
Under the button, I am using events. It uses OpenQuery, and CloseWindow (though since I now have the subquery attached to my form, I since removed the CloseWindow event.)
Where would I put the bit of code you gave me?
EDIT: Fooling around with everything I figured out where to put it and it now works! Woo! Though there is one more thing I need, on another topic (it does evolve the subquery + form though).
http://www.mediafire.com/?36bhszdxj6n810t
That is my current database. Once again, CustomerT isn't needed, ignore it for now. What I want is on SearchF, the add button. How would I set it up so when I write in the text boxes beside that, and push add it adds it to the OrderT for the query to be able to look up when you search later? It sounds simple, but I have no clue where to start.