Hello,
I have a form in my database that contains all of the details for a specific vehicle of ours. On that form is a button. In the properties of that button, in the "On Click" event, is an [Event Procedure]. The coding for that [Event Procedure] is as follows:
As you can see, the button is designed to open a specific form named "Inspection". When it opens that form, it puts the "CustomerID" in the proper place, as the forms are linked that way.
My issue is that I need it to ALSO put in (or populate) the "AltID" for that same vehicle. It seems easy, but for some reason I can't get it to work properly.
Any ideas???
Thx!
DG
I have a form in my database that contains all of the details for a specific vehicle of ours. On that form is a button. In the properties of that button, in the "On Click" event, is an [Event Procedure]. The coding for that [Event Procedure] is as follows:
Code:
Private Sub Command153_Click()
DoCmd.OpenForm "frmInspection", acNormal, , "[CustomerID]=" & Me.CustomerID, acFormAdd
Dim f As Form
Set f = Forms("frmInspection")
f.CustomerID.DefaultValue = Me.CustomerID
f.Modal = True
End Sub
My issue is that I need it to ALSO put in (or populate) the "AltID" for that same vehicle. It seems easy, but for some reason I can't get it to work properly.
Any ideas???
Thx!
DG