Refernce a control on the second tab of a form

  • Thread starter Thread starter Bob Valentine
  • Start date Start date
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
 
Back
Top