Zydeceltico
Registered User.
- Local time
- Today, 14:13
- Joined
- Dec 5, 2017
- Messages
- 843
Hi all -
I have a table, tblInspectionEvent, that has many fields - one of which is Notes. The PK for this table is InspectionEvent_ID.
I have a form used for data entry for Notes. It is opened twice - always - at the beginning and end of an event that may take a few minutes or a few days.
That form has two buttons on it. When the form is first opened, one of the buttons is visible (cmdEventNotes) and the other (cmdAddtlNotes) is not.
The first time the form is opened the user clicks the visible button which opens a popup form (frmEventNotes) with a single long text box on it where the user types some notes (Notes). InspectionEvent_ID is passed to secondary data entry form via OpenArgs.
Then the user saves and closes that form and the orginal form. The typed notes are saved to the table underneath.
Later the user will return to the original form and the second button (cmdAddtlNotes) will be visible but not the cmdEventNotes button. Clicking cmdAddtlNotes opens another second form, frmAddtlNotes, again with InspectionEvent_ID being passed to frmAddtlNotes via OpenArgs and placed in an unbound tetxbox on frmAddtlNotes.
What I would like to happen is that when the value in OpenArgs is placed in the unbound textbox (txtInspectionEvent_ID) for the Dirty event to trigger a SQL statement or a filter which would search tblInspecitonEvent for the value in txtInspectionEvent_ID and return the previously typed text in field Notes and allow the user to add another sentence or two to the already existing Notes field.
Before I even try to mockup something for discussion, I am hoping to get some direction as to what types of procedures I could be looking at to get form A to B - in a general way.
As always - - thank you for all of your help and patience!
Tim
I have a table, tblInspectionEvent, that has many fields - one of which is Notes. The PK for this table is InspectionEvent_ID.
I have a form used for data entry for Notes. It is opened twice - always - at the beginning and end of an event that may take a few minutes or a few days.
That form has two buttons on it. When the form is first opened, one of the buttons is visible (cmdEventNotes) and the other (cmdAddtlNotes) is not.
The first time the form is opened the user clicks the visible button which opens a popup form (frmEventNotes) with a single long text box on it where the user types some notes (Notes). InspectionEvent_ID is passed to secondary data entry form via OpenArgs.
Then the user saves and closes that form and the orginal form. The typed notes are saved to the table underneath.
Later the user will return to the original form and the second button (cmdAddtlNotes) will be visible but not the cmdEventNotes button. Clicking cmdAddtlNotes opens another second form, frmAddtlNotes, again with InspectionEvent_ID being passed to frmAddtlNotes via OpenArgs and placed in an unbound tetxbox on frmAddtlNotes.
What I would like to happen is that when the value in OpenArgs is placed in the unbound textbox (txtInspectionEvent_ID) for the Dirty event to trigger a SQL statement or a filter which would search tblInspecitonEvent for the value in txtInspectionEvent_ID and return the previously typed text in field Notes and allow the user to add another sentence or two to the already existing Notes field.
Before I even try to mockup something for discussion, I am hoping to get some direction as to what types of procedures I could be looking at to get form A to B - in a general way.
As always - - thank you for all of your help and patience!
Tim