Wild cards

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for more information in passing information between a form and using "like *

The query would read something like this

Like forms![formname]![controlname] *
 
I am looking for more information in passing information between a form and using "like *"

The query would read something like this:

Like forms![formname]![controlname] *

If the data in [ControlName] was "Smith" then to get all records that
include "Smith" any where in the field, i.e. Smith, Smithtown,
Hammersmith, use:
Like "*" & forms![formname]![controlname] & "*"

To return only records that begin with Smith, use:
Like "*" & forms![formname]![controlname]

To return records that only end in Smith, use:
Like forms![formname]![controlname] & "*"
 
Thank

----- fredg wrote: ----

On Wed, 14 Apr 2004 17:01:02 -0700, Denis wrote
I am looking for more information in passing information between a form and using "like *
The query would read something like this
Like forms![formname]![controlname]

If the data in [ControlName] was "Smith" then to get all records tha
include "Smith" any where in the field, i.e. Smith, Smithtown
Hammersmith, use
Like "*" & forms![formname]![controlname] & "*

To return only records that begin with Smith, use
Like "*" & forms![formname]![controlname]

To return records that only end in Smith, use
Like forms![formname]![controlname] & "*
 
Back
Top