Hi,
I have a simple ACCESS (ACCESS 2000) form which allows users to search the table by setting 1 or multiple of the 5 different parameters (i.e. customer name, order date, order ID, customer phone number, product name). Some of the parameters use a drop-down menu, and some allow users to manually enter the data (i.e. phone number). How do I write a query or VB script, which will search the ORDER table stored on the SQL server based on the criteria set by the user?
My guess:
SELECT *
FROM ORDER
WHERE CustomerName LIKE "%howtowritethestring" OR
OrderDate LIKE "%howtowritethestring" OR
OrderID LIKE "%howtowritethestring" OR
CustomerPhone LIKE "%howtowritethestring" OR
ProductName LIKE "%howtowritethestring"
Since I am a newbie to using ACCESS's project, any advice in writing this query or VB script will be a tremendous help!
Thank you in advance!
Egghi
I have a simple ACCESS (ACCESS 2000) form which allows users to search the table by setting 1 or multiple of the 5 different parameters (i.e. customer name, order date, order ID, customer phone number, product name). Some of the parameters use a drop-down menu, and some allow users to manually enter the data (i.e. phone number). How do I write a query or VB script, which will search the ORDER table stored on the SQL server based on the criteria set by the user?
My guess:
SELECT *
FROM ORDER
WHERE CustomerName LIKE "%howtowritethestring" OR
OrderDate LIKE "%howtowritethestring" OR
OrderID LIKE "%howtowritethestring" OR
CustomerPhone LIKE "%howtowritethestring" OR
ProductName LIKE "%howtowritethestring"
Since I am a newbie to using ACCESS's project, any advice in writing this query or VB script will be a tremendous help!
Thank you in advance!
Egghi