Tab Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I put a Tab Control form on my main form so that the user can click on each
tab for specific information (ie. General Info, Destination info, Travel
Info...etc)

I am trying to access one of the controls on my Destination Info Tab (which
I have the name set as Tab2.

I tried accessing the control (drop down) using the following

[Forms]![frmMain]![Name of my dropdown] however this does not work. I am
thinking that somehow I need to tell it that it is on Tab2

Any ideas?
 
James C. said:
I put a Tab Control form on my main form so that the user can click on each
tab for specific information (ie. General Info, Destination info, Travel
Info...etc)

I am trying to access one of the controls on my Destination Info Tab (which
I have the name set as Tab2.

I tried accessing the control (drop down) using the following

[Forms]![frmMain]![Name of my dropdown] however this does not work. I am
thinking that somehow I need to tell it that it is on Tab2

Nope. The TabControl does not influence how a control on a form is
referenced. Check your spelling and naming again.
 
I thought so also however I get an error. I have simplified everything to see
what the problem is and still can't figure it out.

Right now I put a text field: txtName on the 2nd Tab. I also put a button
(called clear)with the onClick properties of txtName = ""

When I type in something in the txtName field and click the button to clear
the field I get the following error:

" The expression On Click you entered as the event property setting produced
the following error: A problem occurred while Microsoft Access was
communicating with the OLE server or ActiveX Control"

I have no idea?



Rick Brandt said:
James C. said:
I put a Tab Control form on my main form so that the user can click on each
tab for specific information (ie. General Info, Destination info, Travel
Info...etc)

I am trying to access one of the controls on my Destination Info Tab (which
I have the name set as Tab2.

I tried accessing the control (drop down) using the following

[Forms]![frmMain]![Name of my dropdown] however this does not work. I am
thinking that somehow I need to tell it that it is on Tab2

Nope. The TabControl does not influence how a control on a form is
referenced. Check your spelling and naming again.
 
Back
Top