I have a form that is used for creating a new office note and it needs to be accessed from 8 different forms. I do not want to create 8 different office note forms though.
I have one form working and here is the code I'm using in the On Load event:
Private Sub Form_Load()
Me![OfficeNoteDate] = Date
Me![ClientID] = Forms![Call List for NonRA]![ClientID]
Me![UnitID] = Forms![Call List for NonRA]![Unit ID]
End Sub
I need to be able to replace "Call List for NonRA" with the other 7 form names, depending on which one the button is pressed on (i.e. Call List for NonRA, RA Call List, Exceptions List, etc).
I found posts about using various forms with one query, and a post about using If, Then, but I don't understand how to determine what form is open when you press the button.
Hope I have explained this in enough detail.
Thank you for your help.
Deniece
I have one form working and here is the code I'm using in the On Load event:
Private Sub Form_Load()
Me![OfficeNoteDate] = Date
Me![ClientID] = Forms![Call List for NonRA]![ClientID]
Me![UnitID] = Forms![Call List for NonRA]![Unit ID]
End Sub
I need to be able to replace "Call List for NonRA" with the other 7 form names, depending on which one the button is pressed on (i.e. Call List for NonRA, RA Call List, Exceptions List, etc).
I found posts about using various forms with one query, and a post about using If, Then, but I don't understand how to determine what form is open when you press the button.
Hope I have explained this in enough detail.
Thank you for your help.
Deniece