Hey guys.
I've searched around a bit on this one, but I'm not finding what I need.
Staff here used to fill out timesheet information on a sheet of paper, hand it to an admin staff member and she then typed it into a Foxpro database.
Recently, with progress being made on my Access system that is going to be replacing the foxpro, Staff have been prepared for the eventual automation of the timesheet process by filling in an excel spreadsheet. Because the Access hasn't been finished yet, these are then printed, and then typed in to the foxpro.
I am now at the stage where I need to automate the timesheet process, and import the spreadsheet data into the timesheet table of the database.
However I've hit a few problems and the import wizard I think is now useless to me.
I need to :-
- ignore the first few rows, as these are just things that make the excel sheet look nice for the staff to be using.
- import all the data after the first rows (starts from row 7)
- the number of rows needed after row 7 may vary (from just 1 entry to maybe 20 or more) so I need some way for the code to check if the first cell of each row is null or not. If null, then move on to the next row : if 2 nulls in a row then presume end of timesheet and finish.
- Take an entry from 1 cell from the first row and make it the source for a column along side the other records. i.e. Cell E5 has 200407 and I want a column called year prd that has that value for every record in it.
Any help for any 1 or all of these problem greatly apprieciated.
If you need to see an example of the spreadsheet or the existing table then let me know.
Thanks
I've searched around a bit on this one, but I'm not finding what I need.
Staff here used to fill out timesheet information on a sheet of paper, hand it to an admin staff member and she then typed it into a Foxpro database.
Recently, with progress being made on my Access system that is going to be replacing the foxpro, Staff have been prepared for the eventual automation of the timesheet process by filling in an excel spreadsheet. Because the Access hasn't been finished yet, these are then printed, and then typed in to the foxpro.
I am now at the stage where I need to automate the timesheet process, and import the spreadsheet data into the timesheet table of the database.
However I've hit a few problems and the import wizard I think is now useless to me.
I need to :-
- ignore the first few rows, as these are just things that make the excel sheet look nice for the staff to be using.
- import all the data after the first rows (starts from row 7)
- the number of rows needed after row 7 may vary (from just 1 entry to maybe 20 or more) so I need some way for the code to check if the first cell of each row is null or not. If null, then move on to the next row : if 2 nulls in a row then presume end of timesheet and finish.
- Take an entry from 1 cell from the first row and make it the source for a column along side the other records. i.e. Cell E5 has 200407 and I want a column called year prd that has that value for every record in it.
Any help for any 1 or all of these problem greatly apprieciated.
If you need to see an example of the spreadsheet or the existing table then let me know.
Thanks