Solved VBA To Filter A Sub Form

jo15765

Registered User.
Local time
Today, 02:25
Joined
Jun 24, 2011
Messages
130
I am attempting to use this to filter a sub-form
Code:
frmSaleItems.Form.Filter = "[ItemId] = '" & Me.Combo7 & "'"

but i keep getting this error
Code:
Datatype mismatch in criteria expression

What should I change in that vba line to remedy this issue?
 
If ItemID is number type, remove apostrophe delimiters. They are used with text type field. Use # for date/time type.
 
If ItemID is number type, remove apostrophe delimiters. They are used with text type field. Use # for date/time type.

I've LITERALLY been sitting here for 30 minutes on that error....geez i've been out of access vba for to long
 

Users who are viewing this thread

Back
Top Bottom