Cant assign value to object

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

I have been trying to use the following on my form to copy accross some
information to some empty fieds on a subform.

I get a message saying I cant assign a value to that object. They are both
textboxes where am I going wrong??

Here is the code---

Forms![frmcustomer]![subfrmorder]![DelAddress] = Me!Address
Forms![frmcustomer]![subfrmorder].Form!DelCity = Me!City
Forms![frmcustomer]![subfrmorder].Form!DelPostCode = Me!PostCode

Thanks a lot in advance.

Rob H
 
It looks like you're missing the "Form" reference in the DelAdress
line (you have it on the other two lines).

-Matt
 
Back
Top