Moss,
With the help of one of my coworkers, we were able to get something working, but I'm not sure how well I'll be able to explain it.
The query that I'll be talking about is the recordsource of my form that is located in the tab control. It is a subform of another form.
Here's what we did.
In the DESIGN view of the query, go to the first blank column. Place your cursor in the top line (field) and invoke the build wizard to do an IIF statement. In the IIF statement, you will need the following format -
IIF([tblname].[tblField you are comparing] = [name of form], true, false)
This should create an expression, usually Expr1.
Now, instead of entering the name of the form, click on the forms folder located at the left of the build screen and manuever to the form/control that you are comparing to.
This will produce the correct syntax that you need.
Be sure to also have your form open w/the criteria in it so the query can run correctly.
From here, you can run the query and make sure the IIF statement is working. If it isn't, #Error will show in the Expr1 column, otherwise True/False shows.
Now, back in the DESIGN view, for the field EXPR1, in the Criteria line, enter
=True
This will now only return all values that evaluated to True with the IIF statement.
Here's what one of my expr's looks like -
IIf(([tblGrid].[Prod]=[Forms]![frmMain]![frmEntry].[Form]![cboProduct]),True,False)
I Swear i tried the exact same syntax in a direct = statement in the query and it didn't work, but this seems to work fine without any glitches. We really don't know what the difference is, but as long as this is working I'm happy.
Good luck, and I hope I've explained it well enough for you!
Janel