A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating Dates



 
 
Thread Tools Display Modes
  #1  
Old November 27th, 2006, 07:53 PM posted to microsoft.public.access.queries
Melinda
external usenet poster
 
Posts: 178
Default Calculating Dates

I have several queries wrote where I have set the criteria to input the
[beginning date]and[ending date] and I want to capture all the data in
between. I also have a lookup field that allows me to select the Pay Period
Ending. Is there a way to query on the [Pay Period Ending] field -14 days.
I thought this might be easier since the end user always knows the Pay Period
Ending Date if it would automatically caputre all data 14 days prior to that.

  #2  
Old November 27th, 2006, 08:19 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Calculating Dates

I want to capture all the data in between.
This will capture all the data in between.
Between [beginning date] And [ending date]

Is there a way to query on the [Pay Period Ending] field -14 days.

Between [Enter Pay Period Ending] -14 And [Enter Pay Period Ending]

"Melinda" wrote:

I have several queries wrote where I have set the criteria to input the
[beginning date]and[ending date] and I want to capture all the data in
between. I also have a lookup field that allows me to select the Pay Period
Ending. Is there a way to query on the [Pay Period Ending] field -14 days.
I thought this might be easier since the end user always knows the Pay Period
Ending Date if it would automatically caputre all data 14 days prior to that.

  #3  
Old November 27th, 2006, 08:22 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Calculating Dates

Melinda

In your query, in design mode, select the [Pay Period Ending] field along
with your other fields.

In the Criteria beneath that field (assuming it is a date field), put
something like the following:

Between [Period Ending Date] - 14 And [Period Ending Date]

Yes, both of those parameters are identical. This way, Access will only
prompt once.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Melinda" wrote in message
...
I have several queries wrote where I have set the criteria to input the
[beginning date]and[ending date] and I want to capture all the data in
between. I also have a lookup field that allows me to select the Pay
Period
Ending. Is there a way to query on the [Pay Period Ending] field -14
days.
I thought this might be easier since the end user always knows the Pay
Period
Ending Date if it would automatically caputre all data 14 days prior to
that.



  #4  
Old November 27th, 2006, 08:30 PM posted to microsoft.public.access.queries
Melinda
external usenet poster
 
Posts: 178
Default Calculating Dates

At the present I am capturing all the data by prompting the end user to enter
the [beginning date]and[ending date]. I thought possibly there might be a
way to set the query up to capture all the data by just prompting them to
enter[pay period endingdate] and the query would calculate the 14 days of
overtime earned --14 days prior to pay period ending. Kind of confusing I
know. The query is working as it is, but it just seems like I should be
able to eliminate some of the parameters.

Thanks

"KARL DEWEY" wrote:

I want to capture all the data in between.

This will capture all the data in between.
Between [beginning date] And [ending date]

Is there a way to query on the [Pay Period Ending] field -14 days.

Between [Enter Pay Period Ending] -14 And [Enter Pay Period Ending]

"Melinda" wrote:

I have several queries wrote where I have set the criteria to input the
[beginning date]and[ending date] and I want to capture all the data in
between. I also have a lookup field that allows me to select the Pay Period
Ending. Is there a way to query on the [Pay Period Ending] field -14 days.
I thought this might be easier since the end user always knows the Pay Period
Ending Date if it would automatically caputre all data 14 days prior to that.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.