Get query data from form for multiple fields not working......

shelnrik

New Member
Joined
Jul 8, 2003
Messages
22
Help I am working on a database for a client I have a query that is getting the criteria from a form. For example they can query the Gender, VP, VPO, Store, HireCode, Date
When we get to the 5th criteria the query does not update anymore ...for instance I was running it using dates, store, VP and Hirecode and when I added the criteria of F for female the query did not update.

What am I doing wrong.
My Criteria is using the Like "*"& [forms]![OPENjobQryForm]![Gender]&"*"
I also have a requery button and that did not seem to update the data.....
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Would need to see the whole query but probably you need single quotes around your text criterion:

Like "'*" & [forms]![OPENjobQryForm]![Gender]&"*'"

Hard to see but if you look you see single quotes are added in the above.
 
Upvote 0

Forum statistics

Threads
1,221,683
Messages
6,161,264
Members
451,692
Latest member
jmaskin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top