Form, query problems...

DT

Registered User.
Local time
Yesterday, 18:37
Joined
Oct 23, 2000
Messages
83
If I put this in the criteria field (minus the quotes) "<>8" the query works find. If I try to capture the same info coming from a form with this in the criteria field (minus the quotes) "[Forms]![formname]![textfield]" it doesn't work. Any suggestions?

Thanks in advance.

DT
 
I am not sure I have enough information to make a comment. How about showing the SQL for the query that you want to modify?
 
Wouldn't you want:

<>[Forms]![formname]![textfield]
 
Wouldn't you want:

<>[Forms]![formname]![textfield]

pbaldy,

You are correct, that works. But how come I can't grab the <> from the form? If I place them directly in the query it works. I would like to have the query grab them from the form.

DT
 
If you're trying to build some sort of flexible search tool, you'll have to build the SQL dynamically in code based on the user's selections.
 
If you're trying to build some sort of flexible search tool, you'll have to build the SQL dynamically in code based on the user's selections.

ok...that's beyond me, but I'll look into it...Thanks
 

Users who are viewing this thread

Back
Top Bottom