invalid reference

H

HSalim

Hi.
I have suddenly run into a problem - this was working all along and now,
when I am at a client site, I am getting an invalid reference error for a
control that I am referencing on a subform.

What could be wrong?

The offending line is:
Me!Text17 = Forms![sbfLineItems].Form![ColorHighlight].ForeColor

Any Help would be appreciated.

Regards
HS
 
J

JohnFol

I think the syntax is wrong.

Forms!MainFormName!SubFormControlName.Form!ControlOnSubForm.ForeColor

I think you have missed out the main form name
 

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