number parameterized query, "blank = all"?

G

Guest

I found the MSKB article on how to create a paramter INStr() with criteria =
Criteria: > 0 Or Is Null for an all search on customer name. What (if
there is) is the equivalent for an all search by a (customer) number? I
tried the same and it didn't work. Cockpit error or is there a different
syntax needed?

P.S. I already have syntax that allows for a list of numbers

tia.

HB
 
D

Duane Hookom

Provide:
- the MSKB number
- Your query SQL
- syntax of your expressions used
- field names and data types
- list of what you tried and what errors you got
 
G

Guest

http://support.microsoft.com/kb/q100131/

Expr1: InStr("," & [Type Member Numbers separated by commas,Blank=All] &
",","," & [MemberNumber] & ",")

criteria: >0 .....but I see I didn't have the "or is null"....I'll try
that The error is that the Members window comes up with a new record.
 
G

Guest

I added the or is null, but the query returns no rows if it is left blank.
What do I need to do to have an "all" query, based on a number field, similar
to the "all" query for a text field?

HB said:
http://support.microsoft.com/kb/q100131/

Expr1: InStr("," & [Type Member Numbers separated by commas,Blank=All] &
",","," & [MemberNumber] & ",")

criteria: >0 .....but I see I didn't have the "or is null"....I'll try
that The error is that the Members window comes up with a new record.


Duane Hookom said:
Provide:
- the MSKB number
- Your query SQL
- syntax of your expressions used
- field names and data types
- list of what you tried and what errors you got
 
D

Duane Hookom

Try:
Expr1: InStr("," & Nz([Type Member Numbers separated by commas,Blank=All],
[MemberNumber]) & "," , "," & [MemberNumber] & ",")

--
Duane Hookom
MS Access MVP
--

HB said:
I added the or is null, but the query returns no rows if it is left blank.
What do I need to do to have an "all" query, based on a number field,
similar
to the "all" query for a text field?

HB said:
http://support.microsoft.com/kb/q100131/

Expr1: InStr("," & [Type Member Numbers separated by commas,Blank=All] &
",","," & [MemberNumber] & ",")

criteria: >0 .....but I see I didn't have the "or is null"....I'll try
that The error is that the Members window comes up with a new record.


Duane Hookom said:
Provide:
- the MSKB number
- Your query SQL
- syntax of your expressions used
- field names and data types
- list of what you tried and what errors you got


--
Duane Hookom
MS Access MVP


I found the MSKB article on how to create a paramter INStr() with
criteria
=
Criteria: > 0 Or Is Null for an all search on customer name.
What (if
there is) is the equivalent for an all search by a (customer) number?
I
tried the same and it didn't work. Cockpit error or is there a
different
syntax needed?

P.S. I already have syntax that allows for a list of numbers

tia.

HB
 
G

Guest

Thanks again. That did it!

Duane Hookom said:
Try:
Expr1: InStr("," & Nz([Type Member Numbers separated by commas,Blank=All],
[MemberNumber]) & "," , "," & [MemberNumber] & ",")

--
Duane Hookom
MS Access MVP
--

HB said:
I added the or is null, but the query returns no rows if it is left blank.
What do I need to do to have an "all" query, based on a number field,
similar
to the "all" query for a text field?

HB said:
http://support.microsoft.com/kb/q100131/

Expr1: InStr("," & [Type Member Numbers separated by commas,Blank=All] &
",","," & [MemberNumber] & ",")

criteria: >0 .....but I see I didn't have the "or is null"....I'll try
that The error is that the Members window comes up with a new record.


:

Provide:
- the MSKB number
- Your query SQL
- syntax of your expressions used
- field names and data types
- list of what you tried and what errors you got


--
Duane Hookom
MS Access MVP


I found the MSKB article on how to create a paramter INStr() with
criteria
=
Criteria: > 0 Or Is Null for an all search on customer name.
What (if
there is) is the equivalent for an all search by a (customer) number?
I
tried the same and it didn't work. Cockpit error or is there a
different
syntax needed?

P.S. I already have syntax that allows for a list of numbers

tia.

HB
 

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