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  

Exclude weekends



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2004, 04:56 PM
Dan
external usenet poster
 
Posts: n/a
Default Exclude weekends

Hi:

Can anybody tell me how to exclude the weekends from the
rezult of: now()+5 - to calculate just the working days!!?

Thank you,

Dan
  #2  
Old May 28th, 2004, 05:06 PM
Cheryl Fischer
external usenet poster
 
Posts: n/a
Default Exclude weekends

Dan,

There are some really great functions for doing workday math at:

http://www.mvps.org/access/datetime/date0012.htm

The first one listed in the code at that link might be just what you're
looking for.

--

Cheryl Fischer, MVP Microsoft Access



"Dan" wrote in message
...
Hi:

Can anybody tell me how to exclude the weekends from the
rezult of: now()+5 - to calculate just the working days!!?

Thank you,

Dan



  #3  
Old May 28th, 2004, 05:34 PM
Dan
external usenet poster
 
Posts: n/a
Default Exclude weekends

Thank you, Cheryl! I will try and run my query....

Dan
-----Original Message-----
Dan,

There are some really great functions for doing workday

math at:

http://www.mvps.org/access/datetime/date0012.htm

The first one listed in the code at that link might be

just what you're
looking for.

--

Cheryl Fischer, MVP Microsoft Access



"Dan" wrote in

message
...
Hi:

Can anybody tell me how to exclude the weekends from the
rezult of: now()+5 - to calculate just the working

days!!?

Thank you,

Dan



.

  #4  
Old May 28th, 2004, 05:47 PM
Dan
external usenet poster
 
Posts: n/a
Default Exclude weekends

Hi Cheryl:

I do not konw how to correlate the first function with
this criteria in my query/report:

DT: IIf((IIf([reason]="t1",[order_dat]+2,IIf([reason]
="t2L",[order_dat]+30)))))))=Date()+5,"Your Transcript is
due in 5 days")

I would appreciate your help.

Thanks,

Dan
-----Original Message-----
Thank you, Cheryl! I will try and run my query....

Dan
-----Original Message-----
Dan,

There are some really great functions for doing workday

math at:

http://www.mvps.org/access/datetime/date0012.htm

The first one listed in the code at that link might be

just what you're
looking for.

--

Cheryl Fischer, MVP Microsoft Access



"Dan" wrote in

message
.. .
Hi:

Can anybody tell me how to exclude the weekends from

the
rezult of: now()+5 - to calculate just the working

days!!?

Thank you,

Dan



.

.

  #5  
Old May 28th, 2004, 06:26 PM
Cheryl Fischer
external usenet poster
 
Posts: n/a
Default Exclude weekends

I'm working on it for you ...

However, the calculated field that you provided is not acceptable to the
query designer when I try to test it. Does it run in your query? Would
you mind posting the logic that you want, particularly the part between the
**:

DT: IIf((IIf([reason]="t1",[order_dat]+2,IIf([reason]
="t2L", *[order_dat]+30)))))))=Date()+5*,"Your Transcript is
due in 5 days")


Seems to me that it should be something like:

DT: IIf([reason]="t1",[order_dat]+2,
IIf([reason] = "t2L", some date calculation,
IIf([order_dat]+30=Date()+5,"Your Transcript is
due in 5 days")))



--

Cheryl Fischer, MVP Microsoft Access



"Dan" wrote in message
...
Hi Cheryl:

I do not konw how to correlate the first function with
this criteria in my query/report:

DT: IIf((IIf([reason]="t1",[order_dat]+2,IIf([reason]
="t2L",[order_dat]+30)))))))=Date()+5,"Your Transcript is
due in 5 days")

I would appreciate your help.

Thanks,

Dan
-----Original Message-----
Thank you, Cheryl! I will try and run my query....

Dan
-----Original Message-----
Dan,

There are some really great functions for doing workday

math at:

http://www.mvps.org/access/datetime/date0012.htm

The first one listed in the code at that link might be

just what you're
looking for.

--

Cheryl Fischer, MVP Microsoft Access



"Dan" wrote in

message
.. .
Hi:

Can anybody tell me how to exclude the weekends from

the
rezult of: now()+5 - to calculate just the working

days!!?

Thank you,

Dan


.

.



  #6  
Old May 31st, 2004, 05:01 PM
Herman
external usenet poster
 
Posts: n/a
Default Exclude weekends

I also try to implement this function, but not works? I put next statement in my query: TotalDays: Work_Days([begdate]-[enddate]) What do I wrong?
  #7  
Old May 31st, 2004, 05:15 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default Exclude weekends

I'm not sure where you got your Work_Days() function but I expect you need
to replace your "-" with a comma.
TotalDays: Work_Days([begdate], [enddate])
--
Duane Hookom
MS Access MVP


"Herman" wrote in message
...
I also try to implement this function, but not works? I put next statement

in my query: TotalDays: Work_Days([begdate]-[enddate]) What do I wrong?


 




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:18 AM.


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