G
Guest
Some language have an inlist function (inlist State = 'NY', 'CT', 'NJ') is
there one in Access 2003? Or is there something equivalent?
there one in Access 2003? Or is there something equivalent?
Tupacmoche said:Some language have an inlist function (inlist State = 'NY', 'CT', 'NJ') is
there one in Access 2003? Or is there something equivalent?
Tupacmoche said:Some language have an inlist function (inlist State = 'NY', 'CT',
'NJ') is there one in Access 2003? Or is there something equivalent?
Dirk Goldgar said:If InStr(State, "NY,CT,NJ") > 0 Then
Dirk Goldgar said:I appear to have written this backward -- should have been
If InStr("NY,CT,NJ", State) > 0 Then
Sorry.
Douglas J. Steele said:Just to be different, I typically include commas on either side, just
to be sure that it fails for, say, single characters ("N", "C"):
If InStr(",NY,CT,NJ,", ", " & State & ",") > 0 Then
(although I'll admit I've been known to go overboard...)