query criteria that will include all

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a between date field and I want to include all date if the parmeter is
blank. How can I do that?
 
Denise said:
I have a between date field and I want to include all date if the parmeter is
blank.

Check if the parameter is null, maybe something like:

Between [Enter Start Date] And [Enter Start Date]+7 OR
[Enter Start Date] Is Null
 
Marshall Barton said:
Denise said:
I have a between date field and I want to include all date if the parmeter is
blank.

Check if the parameter is null, maybe something like:

Between [Enter Start Date] And [Enter Start Date]+7 OR
[Enter Start Date] Is Null
 
:
I want to say [enter begin date or press enter for all]
Marshall Barton said:
Denise said:
I have a between date field and I want to include all date if the parmeter is
blank.

Check if the parameter is null, maybe something like:

Between [Enter Start Date] And [Enter Start Date]+7 OR
[Enter Start Date] Is Null
 
Between [enter begin date or press enter for all] And [enter begin date or
press enter for all]+7 OR [enter begin date or press enter for all] Is Null

Make sure you use exactly the same prompt in all 3 places: it's a good idea
to copy and paste, rather than retype.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Denise said:
:
I want to say [enter begin date or press enter for all]
Marshall Barton said:
Denise wrote:

I have a between date field and I want to include all date if the
parmeter is
blank.

Check if the parameter is null, maybe something like:

Between [Enter Start Date] And [Enter Start Date]+7 OR
[Enter Start Date] Is Null
 
Back
Top