Form filters (1 Viewer)

Lanason

Registered User.
Local time
Today, 06:48
Joined
Sep 12, 2003
Messages
258
I have a combo box on a form header to select a persons name to filter the data below

but cant get the syntax correct - the combo box name is OwnerFilter

Me.Filter = "Owner = OwnerFilter"
Me.FilterOn = True

this doesn't work - any help please
 

Ranman256

Well-known member
Local time
Today, 01:48
Joined
Apr 9, 2015
Messages
4,337
Are you looking up the name or the ID (string or number)
Strings need quotes....

Me.Filter ="[owner]='" & cboBox & "'"
 

Lanason

Registered User.
Local time
Today, 06:48
Joined
Sep 12, 2003
Messages
258
That was so obvious when you posted it - thanks #BrainFade :D
 

Users who are viewing this thread

Top Bottom