PC Review


Reply
Thread Tools Rate Thread

Code to access 1 specific field value on a Form Tab

 
 
=?Utf-8?B?S2Vu?=
Guest
Posts: n/a
 
      6th Jul 2005
I have a form with a 3 part tab
The form is called main
The Tabs are called TabTest
One tab is called TestPage1
One field on info is called CtlTest

How do I reference CtlTest with code?
I tried Forms!Main!TabTest!Pages!TestPage1!CtlTest = "xxx"
Does not work, can someone please assist
Thanks in advance
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      6th Jul 2005
Ken wrote:
> I have a form with a 3 part tab
> The form is called main
> The Tabs are called TabTest
> One tab is called TestPage1
> One field on info is called CtlTest
>
> How do I reference CtlTest with code?
> I tried Forms!Main!TabTest!Pages!TestPage1!CtlTest = "xxx"
> Does not work, can someone please assist
> Thanks in advance


TabControls do not affect control references. Just use the same reference
you would use if there were no TabControl.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


 
Reply With Quote
 
=?Utf-8?B?S2Vu?=
Guest
Posts: n/a
 
      7th Jul 2005
So simple - thanks

"Rick Brandt" wrote:

> Ken wrote:
> > I have a form with a 3 part tab
> > The form is called main
> > The Tabs are called TabTest
> > One tab is called TestPage1
> > One field on info is called CtlTest
> >
> > How do I reference CtlTest with code?
> > I tried Forms!Main!TabTest!Pages!TestPage1!CtlTest = "xxx"
> > Does not work, can someone please assist
> > Thanks in advance

>
> TabControls do not affect control references. Just use the same reference
> you would use if there were no TabControl.
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Code to change Access Form field visibility for that record only sharsy Microsoft Access Macros 1 21st Apr 2010 10:15 AM
Re: Access Form Field filepath to external picture code Allen Browne Microsoft Access Form Coding 1 27th Feb 2010 02:08 AM
Copying Specific Records From A Field According to another Field By Code Ange Kappas Microsoft Access Form Coding 2 18th Feb 2008 07:21 PM
Command to run access, open to specific form and specific record Clint Marshall Microsoft Access 4 24th Jan 2008 08:30 PM
Setting a value from a variable used in VB code into a field on an Access form Eric Microsoft Access Forms 2 12th Feb 2004 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.