M
Miranda
I am trying to assign a value to a control that is the same as the value of
a control in another form. The goal would be to enter the contact
information on the Reservation form, click the button, and the Reservation
Detail form comes up to enter the details of the reservation. That detail
information then appears on a subform on the Reservation form. I would like
to have the CustomerID value from the Reservation Form be assigned to the
CustomerID on the Reservations Detail form. I have built a macro on a
command button to open the form (which works) and to set the value (which
doesn't). The fields are of the same data type and format. As soon as I
click the button, the form appears, but a message appears that says:
"Procedure declaration does not match description of event or procedure
having the same name".
The macro is set for OnClick and reads:
Echo
Echo On NO
OpenForm
Form Name Reservation Detail
View Form
Data Mode Add
Window Mode Normal
SetValue
Item [Forms]![Reservation Detail]![CustomerID]
Expression [Forms]![Reservation]![CustomerID]
I have been trying to tweak this for two days to no avail. Any assistance
you could offer would be appreciated.
Miranda
a control in another form. The goal would be to enter the contact
information on the Reservation form, click the button, and the Reservation
Detail form comes up to enter the details of the reservation. That detail
information then appears on a subform on the Reservation form. I would like
to have the CustomerID value from the Reservation Form be assigned to the
CustomerID on the Reservations Detail form. I have built a macro on a
command button to open the form (which works) and to set the value (which
doesn't). The fields are of the same data type and format. As soon as I
click the button, the form appears, but a message appears that says:
"Procedure declaration does not match description of event or procedure
having the same name".
The macro is set for OnClick and reads:
Echo
Echo On NO
OpenForm
Form Name Reservation Detail
View Form
Data Mode Add
Window Mode Normal
SetValue
Item [Forms]![Reservation Detail]![CustomerID]
Expression [Forms]![Reservation]![CustomerID]
I have been trying to tweak this for two days to no avail. Any assistance
you could offer would be appreciated.
Miranda