Wildcard as a parameter 
Author Message
 Wildcard as a parameter

When I pass a parameter to a query, it acts as the criteria to select
specific records.

But how can I make a parameter query return ALL records?

I tried using the wildcard ( * ) but this doesn't work.  The alternative I
am using now is to have two queries: one a parameter query and one a
nonparameter query.

Is there a better approach?

Thanks
Dave
--------
David R. Frick & Co., CPA
http://www.*-*-*.com/




Thu, 04 Jan 2001 03:00:00 GMT  
 Wildcard as a parameter

try this I go it from the northwing:

SELECT Customers.*, Customers.CustomerID
FROM Customers
WHERE (((Customers.CustomerID) Like "*" & [Me]));


Quote:
>When I pass a parameter to a query, it acts as the criteria to select
>specific records.

>But how can I make a parameter query return ALL records?

>I tried using the wildcard ( * ) but this doesn't work.  The alternative I
>am using now is to have two queries: one a parameter query and one a
>nonparameter query.

>Is there a better approach?

>Thanks
>Dave
>--------
>David R. Frick & Co., CPA
>http://www.frick-cpa.com





Thu, 04 Jan 2001 03:00:00 GMT  
 Wildcard as a parameter
The following query syntax will select all records when you press enter
instead of entering a parameter. Like "*" & [Enter mfg] & "*"



Quote:
> When I pass a parameter to a query, it acts as the criteria to select
> specific records.

> But how can I make a parameter query return ALL records?

> I tried using the wildcard ( * ) but this doesn't work.  The alternative
I
> am using now is to have two queries: one a parameter query and one a
> nonparameter query.

> Is there a better approach?

> Thanks
> Dave
> --------
> David R. Frick & Co., CPA
> http://www.frick-cpa.com





Thu, 04 Jan 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. passing "*" wildcard as adodb.parameter from vb to access

2. Null values in Parameter queries (or Wildcards)???

3. Null values in Parameter queries (or Wildcards)???

4. Wildcard syntax for DTC parameter connected to access db

5. Wildcard Parameters

6. Parameter Range and wildcards

7. Wildcards in parameters

8. Wildcard search validation (Regular Expressions)

9. DOS wildcard, *, not valid with .FileName?

10. Wildcard programming help required

11. Wildcard Critieria from a Function

12. Filecopy with wildcards

 

 
Powered by phpBB® Forum Software