Hi I am having trouble getting a query to work and help would be most appreciated.
I have a main form with several tabs that contain various forms.
One of the forms has customer details on it.
Unfortunately the address has been put into only one field called CustDelivery.
a typical entry in the field would be something like this "57 Midas Road Malaga WA 6275"
My problem is that the customer wants to filter the field [CustDelivery] in the table tblCust to find only records that have Malaga or any other suburb within the field [CustDeliovery].
I have an Unbound text box called [txtFilterSuburb] on a form called frmCustomer that is part of an unbound form called frmMain so that he can enter a suburb of his choice and a button that will query the Customer table.
The query looks like this but it does not work. I cant get the query to get the criteria from the unbound text box on the form.
SELECT tblCust.CustID AS tblCust_CustID, tblCust.CustName, tblCust.CustDelivery, tblCust.CustPhone, tblCust.CustMobile, tblCust.CustFax, tblCust.CustEmail
FROM tblCust
WHERE (((tblCust.CustDelivery) Like "*[Forms]![frmMain]![frmCustomer].[Form]![txtFilterSuburb]*"));