query by date selection

  • Thread starter Thread starter hisham
  • Start date Start date
H

hisham

Dear member,
could you correct my syntax for view data only date selected as
Enter your date: example 1/1/2008 to 31/5/2008
I have data from date 1/1/2006 till now.
 
If you want Access to prompt you for 2 dates, try:
Between [Starting date] And [Ending date]

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

hisham said:
Dear member,
could you correct my syntax for view data only date selected as
Enter your date: example 1/1/2008 to 31/5/2008
I have data from date 1/1/2006 till now.
=DateSerial([Enter date:],1,1) And <DateSerial([Enter date:]+1,1,1)
 
what correct coding?can you write down?

Allen Browne said:
If you want Access to prompt you for 2 dates, try:
Between [Starting date] And [Ending date]

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

hisham said:
Dear member,
could you correct my syntax for view data only date selected as
Enter your date: example 1/1/2008 to 31/5/2008
I have data from date 1/1/2006 till now.
=DateSerial([Enter date:],1,1) And <DateSerial([Enter date:]+1,1,1)
 
That's it. In query design, you just type that into the Criteria row
underneath your date field.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

hisham said:
what correct coding?can you write down?

Allen Browne said:
If you want Access to prompt you for 2 dates, try:
Between [Starting date] And [Ending date]

hisham said:
Dear member,
could you correct my syntax for view data only date selected as
Enter your date: example 1/1/2008 to 31/5/2008
I have data from date 1/1/2006 till now.

=DateSerial([Enter date:],1,1) And <DateSerial([Enter date:]+1,1,1)
 

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

Back
Top