Question Syntax for applying filter to navigation button (1 Viewer)

byTimber

Registered User.
Local time
Yesterday, 19:27
Joined
Apr 14, 2012
Messages
97
I am going crazy with this;

I have a navigation form containing several forms. The forms are set to a table and the controls are set to the appropriate fields.

I need to filter the data to the forms (in the navigation pane to field "BusinessName" passed as the variable lvrName)

I have ;
"[BusinessName] = " & Chr(34) & lvrName & Chr(34)

doesn't work.
Can any psychiatrists / super helpers put me right!
Please!!:confused:
 

Isskint

Slowly Developing
Local time
Today, 03:27
Joined
Apr 25, 2012
Messages
1,302
If you are just wanting to set the forms filter then use:

Me.Filter = "([BusinessName] = '" & lvrName & "')" Note the use of a single quote mark after the = sign and before the close bracket )
Me.FilterOn=TRUE
 

byTimber

Registered User.
Local time
Yesterday, 19:27
Joined
Apr 14, 2012
Messages
97
Thanks IsSkint - The very answer I needed. You should get an award!!!! R ....
 

Users who are viewing this thread

Top Bottom