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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Scheduling
I'm trying to recreate a schedule that I produced in excel. the excel
schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? -- yque |
#2
|
|||
|
|||
Scheduling
See:
Doing WorkDay Math in VBA at: http://www.mvps.org/access/datetime/date0012.htm -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "yque" wrote in message ... I'm trying to recreate a schedule that I produced in excel. the excel schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? -- yque |
#3
|
|||
|
|||
Scheduling
Thanks, but I'm still not exactly sure on what to do to put that into action
with what I have to do. I fairly new to access. -- yque "Allen Browne" wrote: See: Doing WorkDay Math in VBA at: http://www.mvps.org/access/datetime/date0012.htm -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "yque" wrote in message ... I'm trying to recreate a schedule that I produced in excel. the excel schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? -- yque |
#4
|
|||
|
|||
Scheduling
I am recieving a data type mismatch error when I try to enter an array in the
"adtmDates" portion of the 'dhAddWorkDaysA' function. If I enter a single date as a holiday it works fine, but when I try to enter an array... ex: Array(#1/6/2006#,#1/10/2006#) that is when the data type mismatch occurs. I don't see an array function listed in my expression builder, but I don't think that's the problem, is there anyting I can do to make it let me enter an array of holiday dates here? -- yque "Allen Browne" wrote: See: Doing WorkDay Math in VBA at: http://www.mvps.org/access/datetime/date0012.htm -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "yque" wrote in message ... I'm trying to recreate a schedule that I produced in excel. the excel schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? -- yque |
#5
|
|||
|
|||
Scheduling
The Array() function works in limited circumstances, but you can also load
your array with: adtmDates(0) = #1/6/2006# adtmDates(1) = #1/10/2006# etc. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "yque" wrote in message ... I am recieving a data type mismatch error when I try to enter an array in the "adtmDates" portion of the 'dhAddWorkDaysA' function. If I enter a single date as a holiday it works fine, but when I try to enter an array... ex: Array(#1/6/2006#,#1/10/2006#) that is when the data type mismatch occurs. I don't see an array function listed in my expression builder, but I don't think that's the problem, is there anyting I can do to make it let me enter an array of holiday dates here? -- yque "Allen Browne" wrote: See: Doing WorkDay Math in VBA at: http://www.mvps.org/access/datetime/date0012.htm "yque" wrote in message ... I'm trying to recreate a schedule that I produced in excel. the excel schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? |
#6
|
|||
|
|||
Scheduling
I still couldn't get the Array() function to work. However, I put an ' If
adtmDates = 0 Then adtmDates = Array(#1/6/2006#,1/10/2006#) End If ' section into the VBA Code and entered ' 0 ' for the adtmDates in the function, it works perfect. Thanks very much for your help and direction. -- yque "Allen Browne" wrote: The Array() function works in limited circumstances, but you can also load your array with: adtmDates(0) = #1/6/2006# adtmDates(1) = #1/10/2006# etc. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "yque" wrote in message ... I am recieving a data type mismatch error when I try to enter an array in the "adtmDates" portion of the 'dhAddWorkDaysA' function. If I enter a single date as a holiday it works fine, but when I try to enter an array... ex: Array(#1/6/2006#,#1/10/2006#) that is when the data type mismatch occurs. I don't see an array function listed in my expression builder, but I don't think that's the problem, is there anyting I can do to make it let me enter an array of holiday dates here? -- yque "Allen Browne" wrote: See: Doing WorkDay Math in VBA at: http://www.mvps.org/access/datetime/date0012.htm "yque" wrote in message ... I'm trying to recreate a schedule that I produced in excel. the excel schedule uses the workday() function along with string constants to tell me when the my next task can begin excluding weekends, holidays, and any delays i might need to add. i can make a simple expression to drive the dates on the schedule but i don't know how i can make it skip weekends and holidays and only give me workdays on the report. is this possible or should I just stick with excel? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I make scheduling classrooms easier? | dna_atg | General Discussions | 1 | September 21st, 2005 05:42 AM |
resource scheduling & auto accept | Ted | Calendar | 0 | September 1st, 2005 07:08 PM |
Resource scheduling | corpach | Calendar | 5 | December 22nd, 2004 05:01 PM |
See different time zone in scheduling tab | Lauren | Calendar | 1 | June 8th, 2004 03:31 AM |
Help Please --- does anyone know of a database/template on scheduling school bus or public transportation bus ? | St. James | Database Design | 3 | May 11th, 2004 03:11 PM |