|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with Programmatically adding data
Ok, hope I can get some help on this. I want to programmatically add new records maybe in MS Access Module. I would like to see a sample in the simplest form such as adding a new record for each day of the week for the entire year to an existing table. The new record can consist of ID (auto number) and Date. So the first few records in the table would look like this:
ID Date 1 01/01/2004 2 02/01/2004 3 03/01/2004 etc..... The module would loop until it hits Dec 31/2004. If I can get a sample, I can maybe alter it to reflect my actual data. Thanks in advance for any help. Sherriff |
|
#2
|
|||
|
|||
|
Got it working
Ok, figured this one out. I just used the Module in Access and did some VB ADO to add new records. I also did not want to add weekends so I set my dates and checked for what day it was and if Sat, add 48 hours or if Sun. add 24 hours. If statements jump over weekends instead of adding to my table. Works well. Now I can add all employees standard Mon to Fri hours for the entire year in a matter of seconds....
Thanks Sherriff |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Help with Programmatically adding data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|