Originally posted by odamsr
I have an order details form and when I click the save command I want it to update some of the values to another form. I have the following code and it states that it can't find the form.
Forms!frmSubVehicle!txtStockNbr = Me.cboStockNbr
What am I doing wrong?
If frmSubVehicle is a SUBFORM on another form you have to reference the main form as well.
Forms!MainForm!frmSubVehicle.txtStockNbr = Me.cboStockNbr
Also, frmSubVehicle has to be the name of the subform CONTROL that the subform sits on, which isn't always the form name.