query dates

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

Guest

I have two fields, one called OrdDate and another ShippedDate. I want to
retrieve data from date ordered to 10 days after the ship date.
=[OrdDAte] in the criteria field under OrdDate

<=[ShippedDate] in the criteria field under ShippedDate

I tried <=[ShippedDate]+10 but it don't work.

Thanks, for anyones help.
 
Fly said:
I have two fields, one called OrdDate and another ShippedDate. I want to
retrieve data from date ordered to 10 days after the ship date.
=[OrdDAte] in the criteria field under OrdDate

<=[ShippedDate] in the criteria field under ShippedDate

I tried <=[ShippedDate]+10 but it don't work.

Sorry but, that doesn't make much sense. OrdDate is
certainly going to be >=OrdDate and ShippedDate will
always be <=ShippedDate

You must(?) have some other date field that you want to
check??

Or maybe you want to check against the current date?

Whatever field/value it is, the criteria would look like:
=OrdDate And <=ShippedDate + 10
Or
Between OrdDate And <=ShippedDate + 10

Technically, you should use the DateAdd function instead of
using + 10:
 
Thanks Marsh,

I really appreciate you taking the time to help me out .

Fly Boy5

Marshall Barton said:
Fly said:
I have two fields, one called OrdDate and another ShippedDate. I want to
retrieve data from date ordered to 10 days after the ship date.
=[OrdDAte] in the criteria field under OrdDate

<=[ShippedDate] in the criteria field under ShippedDate

I tried <=[ShippedDate]+10 but it don't work.

Sorry but, that doesn't make much sense. OrdDate is
certainly going to be >=OrdDate and ShippedDate will
always be <=ShippedDate

You must(?) have some other date field that you want to
check??

Or maybe you want to check against the current date?

Whatever field/value it is, the criteria would look like:
>=OrdDate And <=ShippedDate + 10
Or
Between OrdDate And <=ShippedDate + 10

Technically, you should use the DateAdd function instead of
using + 10:
>=OrdDate And <=DateAdd("d", 10, ShippedDate)
 

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