I have 3 Tables TripStart, TripData, TripMoves all share the common field Driver_Run. I have a form that has TripStart as the Parent and TripMoves, TripData as subforms.
heres how it works
[TripStart] has a unique Driver_run (PrimaryKey) Number
There can be many Trips per Run [TripData] There can also be Moves [Tripmoves] associated with Driver_Runs
I can get all te records onto one form and print correctly this sheet is given to drivers who fill it out. no problems yet
BUT... I have had trouble with my queries
I need to come up with a query scheme so that the end user only works with a single record at a time. once they print a form they will click a button that will run macros that will "clean out" the above 3 tables based on then having a field I can mark. I had started down this path but need help with how to get the value in for Driver_Run (it will vary) I had planned on forcing the user to select via a combo box but had trouble formulating that into a query.
UPDATE TripData SET TripData.TripSheetPrinted = "Y"
WHERE (((TripData.Driver_Run)=1));
I have also created tables called [TripStartMaster] etc , {TripStartArchive] and plan on using these later. Master for entering the info back from the driver and Archive to Store Processed work.
Any help with my SQL or how to perform this better (variables?) would be greatly appreciated. My VBA skills are on the weak side....
Thanks
<MEGA>
heres how it works
[TripStart] has a unique Driver_run (PrimaryKey) Number
There can be many Trips per Run [TripData] There can also be Moves [Tripmoves] associated with Driver_Runs
I can get all te records onto one form and print correctly this sheet is given to drivers who fill it out. no problems yet
BUT... I have had trouble with my queries
I need to come up with a query scheme so that the end user only works with a single record at a time. once they print a form they will click a button that will run macros that will "clean out" the above 3 tables based on then having a field I can mark. I had started down this path but need help with how to get the value in for Driver_Run (it will vary) I had planned on forcing the user to select via a combo box but had trouble formulating that into a query.
UPDATE TripData SET TripData.TripSheetPrinted = "Y"
WHERE (((TripData.Driver_Run)=1));
I have also created tables called [TripStartMaster] etc , {TripStartArchive] and plan on using these later. Master for entering the info back from the driver and Archive to Store Processed work.
Any help with my SQL or how to perform this better (variables?) would be greatly appreciated. My VBA skills are on the weak side....
Thanks
<MEGA>