Filtering records in a sub-form of a sub-form

J

Jen

Just a thought, but try replacing the Chr(34) - double
quote with Chr(39) - single quote.

Me.Filter = "[ItemNo]=" & Chr(39) & strItemFilter
& Chr(39)
Me.FilterOn = True

I'm crossing my fingers!
Jen
 
T

Tim Ferguson

Me.Filter = "[ItemNo]=" & Chr(39) & strItemFilter
& Chr(39)
Me.FilterOn = True

Isn't it likely that a field called ItemNo is numeric rather than textual?

I'd suggest

Me.Filter = "ItemNo = " & strItemFilter

Of course, it's a bit confusing having the ItemFilter as a string variable:
where is this value coming from?

HTH


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top