Please help I am a newbie and I am stumped. Heres my situation. I have 2 tables that share a common field "SNum". The first one (tblDevices) states whether the SNum is on repair and the second (tblRepairs) holds the repair history of all "SNums". What I need to do is show only the records whose SNum from tblDevice Onrepair is True and the last instance of that SNum from the tblRepairs. Not sure if this helps but in the tblRepair I do have date stamp that I was thinking I could use to help me filter particular SNums from this table. What I ultimately want to do is allow the user to open a form see all SNums on repair and update tblRepair information accordingly. I am not sure what to do but I dont want to use bound field or have the user input any criteria.
Simplified Ex:
tblDevice tblRepair
1212 1212 01/01/04
1212 01/10/04
3626 3626 02/14/04
3626 03/20/04
I am getting all four.
What I want is this in a recordset:
1212 01/10/04
3626 03/20/04
This info would then be displayed and repair info filled in, and saved to tblRepair.
I have tried using Select Distinct but couldnt get it to work??
I then thought why not create two record sets find all SNum from tblDevice whose OnRepair = True during which call a Sub to use these records in the second recordset as criteria and ORDER BY [DateSent] DESC, but then my issue was where to store it all, how to display it, and how to update. As you can see I am a beginner and confused, I am also thinking theres got to be a easier way.
If anyone would be so kind I would appreciate it.
Thank you
PGM
Simplified Ex:
tblDevice tblRepair
1212 1212 01/01/04
1212 01/10/04
3626 3626 02/14/04
3626 03/20/04
I am getting all four.
What I want is this in a recordset:
1212 01/10/04
3626 03/20/04
This info would then be displayed and repair info filled in, and saved to tblRepair.
I have tried using Select Distinct but couldnt get it to work??
I then thought why not create two record sets find all SNum from tblDevice whose OnRepair = True during which call a Sub to use these records in the second recordset as criteria and ORDER BY [DateSent] DESC, but then my issue was where to store it all, how to display it, and how to update. As you can see I am a beginner and confused, I am also thinking theres got to be a easier way.
If anyone would be so kind I would appreciate it.
Thank you
PGM