How to call a text box within tab control?

s1police

Registered User.
Local time
Tomorrow, 04:27
Joined
Aug 1, 2007
Messages
50
Dear all,

I have tried to make a tab control within a form, inside the tab control, I put a subform inside. However, how can I call the text field within tab control > subform ??

For example,

Main Form: frm_main
Tab Control: TabCtl48
tab1: Project_Details
tab2: Project_Milestones
tab3: Project_Tasks

Within tab2: Project_Milestones, I insert a subform called "subfrm_datasheet_milestone".

Inside the subfrm_datasheet_milestone, there are few fields,
- milestone_id
- project_id
- milestone_title
- start_date
- end_date
- percentage_completed

Link Child Fields = project_id
Link Master Fields = project_id

May I ask, how can I call the project_id within subfrm_datasheet_milestone? Because it always prompt me that it cannot find the object for it.

Please help!!

Regards,
s1police
 
Hi,

If the name of the subform (name in the main form as subform , not the name of form itself seen as sourceobject) is "subfrm_datasheet_milestone" then

me("subfrm_datasheet_milestone")("project_id")

But if the subform's own name is "subfrm_datasheet_milestone" but main form defines it as something else (like subFormA) then

me("subFormA")("project_id")

Please note that this solution is for Access's native tab control.

HTH
OlcayM
 

Users who are viewing this thread

Back
Top Bottom