Refernce a control on the second tab of a form

B

Bob Valentine

Group:

How do I reference a control that is on the second or third tab of a form. I
want to update the fields through code, but I can only reference the
controls on the first tab of the form for some reason. Here is the statement
that I am using:

If ctl.Name = "Description" then
ctl.Value = rst(ctl.ControlSource)
End If

If I reference a Ctl.Name that is on the second tab, the control is not
updated.

Thank you for your help.

BobV
 

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