D
Daniel
When I want to add a record by opening a form with one or
more of the fields taken from a field on the first form
how do I do that? e.g. When the user clicks on the New
Appt button on frmPt it should open frmAppt for an
addition with the fApptPtID set to fPtID. I have been
tinkering with the following to no avail:
Private Sub btnNewAppt_Click()
'Opens a new appointment form for the current patient
DoCmd.OpenForm "frmAppt", acNormal, , "fApptPtID" = Me!
fPtID, acFormAdd
End Sub
Where am I going wrong? and can I make multiple fields go
to the new form? Do I use the args section to set values
in the new form?
Thanks
Daniel
more of the fields taken from a field on the first form
how do I do that? e.g. When the user clicks on the New
Appt button on frmPt it should open frmAppt for an
addition with the fApptPtID set to fPtID. I have been
tinkering with the following to no avail:
Private Sub btnNewAppt_Click()
'Opens a new appointment form for the current patient
DoCmd.OpenForm "frmAppt", acNormal, , "fApptPtID" = Me!
fPtID, acFormAdd
End Sub
Where am I going wrong? and can I make multiple fields go
to the new form? Do I use the args section to set values
in the new form?
Thanks
Daniel