B
babyatx13 via AccessMonster.com
I want to open a form based on a name. I have an unbound form with a combo
box that looks up the value I want; this works great for opening reports,
However, I made a form that looks like a report and I need it to open the
same way, using this same unbound form. Therefore I don’t want to code
anything in my unbound form. Obviously the placement of the same code does
not work in a form the way it does in a report.
Report Example:
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "frmAssignedTo", , , , , acDialog
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "frmAssignedTo"
End Sub
Works great in a report.
Can anyone tell me how to code this for a form to open the same way?
Thanks
KBoard
box that looks up the value I want; this works great for opening reports,
However, I made a form that looks like a report and I need it to open the
same way, using this same unbound form. Therefore I don’t want to code
anything in my unbound form. Obviously the placement of the same code does
not work in a form the way it does in a report.
Report Example:
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "frmAssignedTo", , , , , acDialog
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "frmAssignedTo"
End Sub
Works great in a report.
Can anyone tell me how to code this for a form to open the same way?
Thanks
KBoard