B
babs
reposting -still need help -thanks!!!
I have a Main form - (Overall purposeof Both forms combined is to Scheduling
jobs for the Upcoming week)
Main form has WEEK End date manually put in(Always a Sun-they don't work
Sunday) , and Man Name selected from Dropdown
As of right now in the subform the user has to type in all of the dates for
that week
ex. Week End is 8/9/09(put in on Main form)-all just have it infor now
8/9/09-auto put in Like it should
For the actual WORKDATE User has to put in on subform the sched. to work ie.
8/3/09, 8/4/09,8/5/09,8/6/09,8/7/09,8/8/09
When the user puts in the Week End Date on the Main Form - I would like 6
RECORDS AUTOMATICALLY ADDED with the Workdate put in ON the Subform- then the
scheduler can input what actual jobs they are doing on that day
Thinking there should be some VB code to put in on the After Update event of
the Week End date on the Main form
Not sure what code to Insert Records into the Subform.
thanks sooo much,
Barb
SuzyQ 8/31/2009 8:58 AM PST
check out the insert into sql statement and the dateadd function for
increasing your weekend date by a specified number of days. Put that in a
loop from 1 -5 for the days you want to add.
Are you verifying that the user only enters a Sunday date? What would
happen if the user enters a date other than Sunday?
:
babs 8/31/2009 9:57 AM PST
yes,
they only put in a Sunday date-
thinking I would add an Event procedure to the after update of the WEEK End
date on the main form-
Not sure what the exact code should be to for the Do Loop to add the record
and put in the Mon-Sat dates prior???
Thanks so much for your help,
BARb
I have a Main form - (Overall purposeof Both forms combined is to Scheduling
jobs for the Upcoming week)
Main form has WEEK End date manually put in(Always a Sun-they don't work
Sunday) , and Man Name selected from Dropdown
As of right now in the subform the user has to type in all of the dates for
that week
ex. Week End is 8/9/09(put in on Main form)-all just have it infor now
8/9/09-auto put in Like it should
For the actual WORKDATE User has to put in on subform the sched. to work ie.
8/3/09, 8/4/09,8/5/09,8/6/09,8/7/09,8/8/09
When the user puts in the Week End Date on the Main Form - I would like 6
RECORDS AUTOMATICALLY ADDED with the Workdate put in ON the Subform- then the
scheduler can input what actual jobs they are doing on that day
Thinking there should be some VB code to put in on the After Update event of
the Week End date on the Main form
Not sure what code to Insert Records into the Subform.
thanks sooo much,
Barb
SuzyQ 8/31/2009 8:58 AM PST
check out the insert into sql statement and the dateadd function for
increasing your weekend date by a specified number of days. Put that in a
loop from 1 -5 for the days you want to add.
Are you verifying that the user only enters a Sunday date? What would
happen if the user enters a date other than Sunday?
:
babs 8/31/2009 9:57 AM PST
yes,
they only put in a Sunday date-
thinking I would add an Event procedure to the after update of the WEEK End
date on the main form-
Not sure what the exact code should be to for the Do Loop to add the record
and put in the Mon-Sat dates prior???
Thanks so much for your help,
BARb