RollinAgain
MIS
Sorry about the double post but I didn't see the Access Module Forum until after I posted in the general MS Office Forum.
I have a very large Excel file that contains information about various Employee timesheets. I am using Excel VBA to insert the information into several Access Tables.
Here is an example of how each of the Excel Record would appear:
NAME WEEK ENDING TOTAL HOURS
John Doe 06/09/04 35
DATE HOURS
06/05/04 8
06/06/04 8
06/07/04 8
06/08/04 6
06/09/04 5
The Summarized information (Name, Week Ending, Total Hours) will go into a Table called "Summary." This table has 4 fields. The first field is called "Record Number" and is an autonumber field while other 3 fields are called "Name", "Week", and "Hours" My code works fine and the table is successfully updated with this all this info.
Here is an example of the first Summary Record created
1 John Doe 06/09/04 35
After this Summary table has been updated, I need to insert each of the individuals days information into another table called "Details" Using VBA in Excel, how do I tell Access to use the same record number as was assigned to the related main record created in the "Summary" table when creating each of the associated detail records ?
Here is what each of the associated Detailed Records should look like. The first field value (record number) should be the same as the record number in the main record above. How do I do this in VBA?
1 06/05/04 8
1 06/06/04 8
1 06/07/04 8
1 06/08/04 6
1 06/09/04 5
Thanks
Rollin
I have a very large Excel file that contains information about various Employee timesheets. I am using Excel VBA to insert the information into several Access Tables.
Here is an example of how each of the Excel Record would appear:
NAME WEEK ENDING TOTAL HOURS
John Doe 06/09/04 35
DATE HOURS
06/05/04 8
06/06/04 8
06/07/04 8
06/08/04 6
06/09/04 5
The Summarized information (Name, Week Ending, Total Hours) will go into a Table called "Summary." This table has 4 fields. The first field is called "Record Number" and is an autonumber field while other 3 fields are called "Name", "Week", and "Hours" My code works fine and the table is successfully updated with this all this info.
Here is an example of the first Summary Record created
1 John Doe 06/09/04 35
After this Summary table has been updated, I need to insert each of the individuals days information into another table called "Details" Using VBA in Excel, how do I tell Access to use the same record number as was assigned to the related main record created in the "Summary" table when creating each of the associated detail records ?
Here is what each of the associated Detailed Records should look like. The first field value (record number) should be the same as the record number in the main record above. How do I do this in VBA?
1 06/05/04 8
1 06/06/04 8
1 06/07/04 8
1 06/08/04 6
1 06/09/04 5
Thanks
Rollin