Tab Control Problem

C

Chuck216

Hi

I’m having a little trouble. I have the following code on a form and it
worked great until I moved the fields that I am enabling to a tab control
named “Page1†now the fields on the form won’t enable. Basically what I need
is the correct syntax to change the “Me.field name.enabled to point to
page1 of the tab control.

Thanks in advance for any help with this.
Chuck


If Me.Check145 = True Then
Me.RegJobAssignment.Enabled = True
Me.Supervisor.Enabled = True
Me.AssignmentWhenInjured.Enabled = True
Me.TempSupervisor.Enabled = True
Me.Department.Enabled = True
Me.CostCenter.Enabled = True
Me.JobClass.Enabled = True
Me.HireDate.Enabled = True
Me.YearsAtDW.Enabled = True
Me.HourlyWage.Enabled = True
Me.TimeArrivedToday.Enabled = True

End If
 
J

John Spencer

That should still work assuming that the control names didn't change or that
you didn't put the controls into a subform on the tab page.

Moving controls onto a tab page doesn't change the way they are referenced.


John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 
C

Chuck216

Sorry

Yes is does still work it was a Duhhhh on my part.

Thanks for resopnding.
Chuck
 

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