Cant assign value to object

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
 
M

Matthew Sullivan

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

-Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top