Error message on command button to copy data

D

Dudley

I have a command button on a sub-form to copy data from another form:

Me.CareOf = [Forms]![RegisteredOffice]![CareOf]

I get a message that Access cannot find the form RegisteredOffice. Can
anyone tell me the reason for this - or the code to copy the data from the
table field.

Thanks for any help.
Dudley
 
C

Chegu Tom

Is RegisteredOffice open at the time?
Is it a subform on another main form or on this main form?
 
D

Dudley

Thanks very much to both for advice. I finally got it to work by opening
RegisteredOffice, a separate main form.

Dudley
 

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