Go to a record on one subform by clicking on another subform within a subform

albouw

New Member
Joined
Dec 18, 2015
Messages
1
I have read:

"Go to a record on one subform clicking on another subform."


My problem is how to go to a record in one subform by clicking on another subform within a subform.

I get an "expression not correct or too complex" error (translated, so not exact)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
you should post the expression you tried along with the main form, subform and sub-subform names AND the subform control names for the subform and sub-subform.
 
Upvote 0
Update: after reading the other post, and assuming you've set up the relationships as required, you need to get at the value of the nested control in order to navigate to the record. Sytnax for referencing control on a subform is
[Forms]![Main form name]![subform control name].[Form]![control name on subform]

To get at a second level (nested) subform, try this syntax
[Forms]![Main form name]![subform control name].[Form]![subform control name].[Form]![control name on subform]
[Forms]![frmScrollbar]![Child4].[Form]![Child6].[Form]![Text0] = "Test"
Worked for me on a mainform button click where the main had a sub with a sub.
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,248
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top