Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Like' Query Question

Status
Not open for further replies.

ihoskins

MIS
May 20, 2003
11
0
0
IL
I am trying to make a query that will prompt for the variable and then search the fields for that variable. I was thinking something like this...

SELECT tbl_Facility.FacilityID, tbl_Facility.HouseName, tbl_Facility.Address1
FROM tbl_Facility
WHERE (((tbl_Facility.Address1) Like "*[Search]*"));


I need the query to prompt for input. Any ideas?

Thanks
Ian
 
Duh me!!!

SELECT tbl_Facility.FacilityID, tbl_Facility.HouseName, tbl_Facility.Address1
FROM tbl_Facility
WHERE (((tbl_Facility.Address1) Like "*" & [Search] & "*"));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top