B
bw
"CarULineNum" is an unbound control in a subform frmCarRental. I can set
the value of the control as follows:
Forms![MakeTravelRequest]![frmCarRental]![CarULineNum] = 1
This works fine.
I want to now make the subform display the first record, so I use the
following code:
DoCmd.GoToRecord acDataForm, "frmCarRental", acFirst
With this code I get the following error, and description:
Error Number: 2489
Error Description: The object 'frmCarRental' isn't open.
How do I "reset" the subform frmCarRental to the first record?
Thanks,
Bernie
the value of the control as follows:
Forms![MakeTravelRequest]![frmCarRental]![CarULineNum] = 1
This works fine.
I want to now make the subform display the first record, so I use the
following code:
DoCmd.GoToRecord acDataForm, "frmCarRental", acFirst
With this code I get the following error, and description:
Error Number: 2489
Error Description: The object 'frmCarRental' isn't open.
How do I "reset" the subform frmCarRental to the first record?
Thanks,
Bernie