Filter on selected ? (1 Viewer)

ECEK

Registered User.
Local time
Today, 11:38
Joined
Dec 19, 2012
Messages
717
I am trying to filter my data based upon the content of the data within the field that I wish to filter.

I'm getting rather lost.

Could you help me please?

This is what I have tried on click

DoCmd.ApplyFilter , "SalesPerson = Me.Salesperson"
DoCmd.RunCommand acCmdRecordsGoToLast

Thanks for your time in advance.
 

isladogs

MVP / VIP
Local time
Today, 11:38
Joined
Jan 14, 2017
Messages
18,252
You need text delimiters

Code:
DoCmd.ApplyFilter, "SalesPerson = '" & Me.Salesperson & "'"
DoCmd.RunCommand acCmdRecordsGoToLast
 

ECEK

Registered User.
Local time
Today, 11:38
Joined
Dec 19, 2012
Messages
717
Many thanks isladogs.
 

Users who are viewing this thread

Top Bottom