473,320 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to refer to a subform control which is on a tab control? (tabstrip)

176 100+
This is something I haven't found about on the net, even though it seems to me like it could be a common question. The task is simple: I have a ControlName.Value which is on Subform which is on page 1 of a TabCtrl.

I've tried -
(I'm not using code brackets, since this is an incorrect code)
Me!TabCtrl.Form!2!Subfom.Form!NameControl.Value = Me.Name2.Value
and
Me!TabCtrl!2!Subform.Form!NameControl.Value = Me.Name2.Value

What is the correct code?
Thanks.
Dec 16 '06 #1
2 11206
MMcCarthy
14,534 Expert Mod 8TB
This is something I haven't found about on the net, even though it seems to me like it could be a common question. The task is simple: I have a ControlName.Value which is on Subform which is on page 1 of a TabCtrl.

I've tried -
(I'm not using code brackets, since this is an incorrect code)
Me!TabCtrl.Form!2!Subfom.Form!NameControl.Value = Me.Name2.Value
and
Me!TabCtrl!2!Subform.Form!NameControl.Value = Me.Name2.Value

What is the correct code?
Thanks.
You don't need to refer to the tab page just the subform

Expand|Select|Wrap|Line Numbers
  1. [Forms]![MainFormName]![SubformName].Form![NameControl] = Me.Name2
  2.  
this should do it, you don't need the .Value

Mary
Dec 16 '06 #2
missinglinq
3,532 Expert 2GB
Continuing what Mary said about not needing to refer to the tabbed page, tab pages are merely extensions, if you will, of the form. All controls on tabbed pages are referenced as they would be if they were on a regular, non-tabbed form.
Dec 16 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Eric | last post by:
I'm currently using the TabStrip control, but am having slighly difficulties. I've managed to retrieve the Items from the TabStrip using the Items property. But how can I enforce the changes that...
3
by: vikaskuk | last post by:
hi all, i am using tabstrip with multipage control in asp.net. i have put some textboxes on the first tab. my requirement is that whenever user makes some changes in any of textbox and moves...
1
by: Pino Carafa | last post by:
I've designed an aspx page with a Tab Strip on it. The problem is that unlike some of the simpler controls like text boxes and buttons and the likes, this Tab Strip is rendered something like this:...
4
by: solar | last post by:
How to refer to a subform ? On my main form called FrmEmployees I have a button to open a report. I want to forbid opening the report in case the liters in the subform are 0. To this end I...
3
by: Joshua Ammann | last post by:
Hi, (Using Access 2000) I have two tables, similar to Customers and Orders. (Not an exact parallel, but works for this example.) On a form showing customer data, there is a tab control. One...
1
by: MP | last post by:
I have a main form that has a subform which also has a subform: the main form is the first subform is the second subform is When I click on the button »AddNewSubSubRecord« (add a new record...
2
by: Robert V. Hanson | last post by:
I have a user control built using the Microsoft IE Control. I declared a public variable as int32 (DefaultTab) in the user control. I can't seem to provide the correct syntax to the tabstrip...
4
by: Asim Qazi | last post by:
Hi All i m using tab strip control plz help me setting its navigation my cod is private void TabStrip1_SelectedIndexChange(object sender, System.EventArgs e) { switch...
1
by: Paul | last post by:
I have a MDI container form "frmParent". On that form there is a tabstrip control with 2 pages. On one of those pages there is a textbox and a button. When the user clicks on the button a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.