Parameter query to get info on an individual customer or all custo

G

Guest

Designing a form that will allow users to pull info on an individual customer
or all customers. For example, query parameter [Customer ID] for an
individual customer, and [some wild card character] for all customers.

Sample form format:

Enter Customer ID: ______ (could use a wildcard char to pull info on all
customers)

Is there a way to set a query parameter criteria to do this?
 
D

David Lloyd

One approach you may want to look at is to use the "LIKE" SQL syntax.

For example:

SELECT *
FROM Customers
WHERE CustomerID LIKE [Customer ID]

Using the * wildcard parameter for [Customer ID] would return all records.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


Designing a form that will allow users to pull info on an individual
customer
or all customers. For example, query parameter [Customer ID] for an
individual customer, and [some wild card character] for all customers.

Sample form format:

Enter Customer ID: ______ (could use a wildcard char to pull info on all
customers)

Is there a way to set a query parameter criteria to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top