Pulling my hair out here. I'm guessing it's something simple. Fresh eyes most welcome.
I"m attempting to facilitate data entry in a manner that is aligned with an existing paper form's layout. Of course, it was done on a spreadsheet.
It's a basic time entry situation, for an employee's weekly time sheet. The twist is that on any given day, the employee can clock in an out several times, resulting in as many as 6 "time pairs" I'm calling them. (Maybe this is the root of my problem?)
In my efforts to normalize table layouts, I've create a table that contains:
tblTimePairs:
ID (PK)
EmpID (FK to tblEmployees)
dtWork
IndexTimePair (will be a number from 1-6)
tmIn
tmOut
My logic being that I didn't want to take up space for 12 fields representing the potential 6 TimeIn/TimeOut pairs that could occur on a given day, when most often its one or two pairs.
So, I'm having difficulties creating a bound form to facilitate entering times on one row for each date in a pay period.
Say Pay Period is from the 1st to the 15th of the month. I'd like to put up a form with 15 rows, one for each date, with a column for the date and 12 columns for the potential time pairs, so as to mimic the paper form from which this hand written data is to be transcribed. And then have the user be able to tab around on that form and enter the data where needed, and have this bound so I don't have to write a bunch of After Update code.
I made a different table that has all 12 fields for the possible time fields and that made making the bound form much easier, but then I ran into the issue of not having records for each date within the pay period. After creating a query that generated a record for each date in the period, I was left with an un-updateable recordset in the form. Nice for a report, but not my editing data entry needs.
I'm sure this must be doable in Access where you can present the user a "spreadsheet" like form that they can update? Trying several approaches including crosstab queries, and pivot tables, I always hit a wall with not being to update the resulting data.
I've read a little about disconnected ADO recordsets, and have used those before in Excel applications getting data from other data sources. Is that a path I should take? Or should I structure my DB differently? Users are stuck on being able to enter data in the "spreadsheet" like manner. And given the hand written legacy form from which they need to transcribe the data this horizontal one row per day layout would be nice to accomodate for them.
In fact, I've done this in Excel, and then format the results into a chunk of data that I process back into the tblTimePairs Access table mentioned earlier, with an ADO recordset. I'm trying to now to see if I can do it all within Access. I'm hopeful that I can find a way to get away from using the Excel "form", so that i can move this to an .accdr solution. I'm stuck now with the scenario of needing to include an additional .xltm file to facilitate this data entry, and dealing with the automation code between Access and Excel. I do all of this now as an Excel Add In linking to an Access back end, so that solution also has multiple files to keep track of, and inter application automation to handle. It would be nice to get the whole thing contained in an .accdr for example.
Any thoughts most appreciated.
Thanks,
Shred.
I"m attempting to facilitate data entry in a manner that is aligned with an existing paper form's layout. Of course, it was done on a spreadsheet.
It's a basic time entry situation, for an employee's weekly time sheet. The twist is that on any given day, the employee can clock in an out several times, resulting in as many as 6 "time pairs" I'm calling them. (Maybe this is the root of my problem?)
In my efforts to normalize table layouts, I've create a table that contains:
tblTimePairs:
ID (PK)
EmpID (FK to tblEmployees)
dtWork
IndexTimePair (will be a number from 1-6)
tmIn
tmOut
My logic being that I didn't want to take up space for 12 fields representing the potential 6 TimeIn/TimeOut pairs that could occur on a given day, when most often its one or two pairs.
So, I'm having difficulties creating a bound form to facilitate entering times on one row for each date in a pay period.
Say Pay Period is from the 1st to the 15th of the month. I'd like to put up a form with 15 rows, one for each date, with a column for the date and 12 columns for the potential time pairs, so as to mimic the paper form from which this hand written data is to be transcribed. And then have the user be able to tab around on that form and enter the data where needed, and have this bound so I don't have to write a bunch of After Update code.
I made a different table that has all 12 fields for the possible time fields and that made making the bound form much easier, but then I ran into the issue of not having records for each date within the pay period. After creating a query that generated a record for each date in the period, I was left with an un-updateable recordset in the form. Nice for a report, but not my editing data entry needs.
I'm sure this must be doable in Access where you can present the user a "spreadsheet" like form that they can update? Trying several approaches including crosstab queries, and pivot tables, I always hit a wall with not being to update the resulting data.
I've read a little about disconnected ADO recordsets, and have used those before in Excel applications getting data from other data sources. Is that a path I should take? Or should I structure my DB differently? Users are stuck on being able to enter data in the "spreadsheet" like manner. And given the hand written legacy form from which they need to transcribe the data this horizontal one row per day layout would be nice to accomodate for them.
In fact, I've done this in Excel, and then format the results into a chunk of data that I process back into the tblTimePairs Access table mentioned earlier, with an ADO recordset. I'm trying to now to see if I can do it all within Access. I'm hopeful that I can find a way to get away from using the Excel "form", so that i can move this to an .accdr solution. I'm stuck now with the scenario of needing to include an additional .xltm file to facilitate this data entry, and dealing with the automation code between Access and Excel. I do all of this now as an Excel Add In linking to an Access back end, so that solution also has multiple files to keep track of, and inter application automation to handle. It would be nice to get the whole thing contained in an .accdr for example.
Any thoughts most appreciated.
Thanks,
Shred.