G
Guest
I have a form that has a combobox on it. When you type in a value into the
combobox, then there is a button (Add Payment) that opens another form - my
Payments form. What I would like is the value that is in the combobox to
populate one of the fields on the Payments form.
I have been attempting to use OpenARgs for this but just don't have
something right.
I currently have this on the Add Payment button under OnClick
Private Sub PayBtn_Click()
DoCmd.OpenForm "Payments", acNormal, , CustomerID =
CustomerID_sel.Value, acFormAdd, , strArgs
End Sub
Then on my Payment form under OnLoad I tried this:
Private Sub Form_Open(Cancel As Integer)
strArgs = Me.OpenArgs & ""
End Sub
I want the value to carry into a field called Customer on the Payment form -
what am I missing?
Marie Perry
combobox, then there is a button (Add Payment) that opens another form - my
Payments form. What I would like is the value that is in the combobox to
populate one of the fields on the Payments form.
I have been attempting to use OpenARgs for this but just don't have
something right.
I currently have this on the Add Payment button under OnClick
Private Sub PayBtn_Click()
DoCmd.OpenForm "Payments", acNormal, , CustomerID =
CustomerID_sel.Value, acFormAdd, , strArgs
End Sub
Then on my Payment form under OnLoad I tried this:
Private Sub Form_Open(Cancel As Integer)
strArgs = Me.OpenArgs & ""
End Sub
I want the value to carry into a field called Customer on the Payment form -
what am I missing?
Marie Perry