staff hours table
i have dable in this before but i dont think i didnt like the answers and thought that there must be an automated way of doing things.
i have a form with text boxes for a start and finish time for every day of the week.
i would like to populate a table with those times but in one click for a year.
i just had an idea but thought i would run it past someone before i put a lot of work in.
i thought of having many many macros on click event for a button. i would manually type a date in a textbox and it would automatically revert to the first day of the week(monday). then on click it would open query(a query that i have already set up to append a table) then on the next macro it would set value of the date txtbox to DateAdd('d',1,[txtDateStart]), next it would open query(a query for tuesday, so i would need 7 queries).
or i could just have more set value macros and just 1 querie but that would take another 2 macros for each day.(is there a limit to macros)
this process would repeat until DateAdd would be 364. i think im looking at about 700 macros on that single on click event
what do you guys think? will it work? will it crash? will it take forever? is it just outright silly?
i have dable in this before but i dont think i didnt like the answers and thought that there must be an automated way of doing things.
i have a form with text boxes for a start and finish time for every day of the week.
i would like to populate a table with those times but in one click for a year.
i just had an idea but thought i would run it past someone before i put a lot of work in.
i thought of having many many macros on click event for a button. i would manually type a date in a textbox and it would automatically revert to the first day of the week(monday). then on click it would open query(a query that i have already set up to append a table) then on the next macro it would set value of the date txtbox to DateAdd('d',1,[txtDateStart]), next it would open query(a query for tuesday, so i would need 7 queries).
or i could just have more set value macros and just 1 querie but that would take another 2 macros for each day.(is there a limit to macros)
this process would repeat until DateAdd would be 364. i think im looking at about 700 macros on that single on click event
what do you guys think? will it work? will it crash? will it take forever? is it just outright silly?
Last edited: