Hey, I am creating an access database to automate project hours metrics reporting. I want it as fully automated as I can so the manager just clicks buttons. . Is what we do is import excel spreadsheets into the database then run queries on them to generate reports. The issue I have is the last lines have non needed data in them. I would like to either delete those lines prior to import or when importing skip them. The import code is
The bottom of the spreadsheets looks like the following:
49 PROJECT 0 Select Project Nbr
50 Insert new line above this line only. Please perform insert first than copy paste existing line and modify. 0.00 10.00 10.50 9.00 7.00 8.00 0.00 44.50
I realize I could redo my code with
but that would mean every time they added or removed a project from the time sheet I would have to modify the module. There are several managers that may be interested in this database each with a different number of projects on it so it could be tough. Is what I would like to do is either delete the lines after the last line that contains the word project in column 1 or skip any lines that have the word insert in column 1. Any ideas?
Cretin
Code:
DoCmd.TransferSpreadsheet acImport, 8, "TIME_SUMMARY", strpath & strfile, True
49 PROJECT 0 Select Project Nbr
50 Insert new line above this line only. Please perform insert first than copy paste existing line and modify. 0.00 10.00 10.50 9.00 7.00 8.00 0.00 44.50
I realize I could redo my code with
Code:
DoCmd.TransferSpreadsheet acImport, 8, "TIME_SUMMARY", strpath & strfile, True, "A7:P49"
Cretin