filtering form just off a little bit

arage

Registered User.
Local time
Today, 18:36
Joined
Dec 30, 2000
Messages
537
on the open event of my form I’ve applied a macro & specified my main query as the filter plus a where condition…

[regionalDirectorCode]=Left([globalRegioncode],2) & "00"

that will help filter the form. The only problem is that my form is prompting me for globalRegionCode when it is actually a globally stored variable in the database, so why am I getting a parm box for it? I guess I’m just referring to it improperly in my where condition, help!
 
ok I got it
DoCmd.ApplyFilter "NewQuery", "RegionalDirectorCode =" & Left(GlobalRegionCode, 2) & "00"
 

Users who are viewing this thread

Back
Top Bottom