subform and navigation control, how to reference correctly?

behedwin

Active Member
Joined
Dec 10, 2014
Messages
399
I am trying to solve how my forms and subforms should work with a navigation control

I have my mainform called Personal_Form

In this mainform i have a navigation control.

One of the links in my navigation control is to a form called AnstallningData_Form

AnstallningData_Form is based on a query that looks like this
screenshot: http://prntscr.com/jz537g

AnstallningData_Form works just fine if i just open that form.
But if i open my main form (personal_form), then nothing works.... i am being asked for
"[Forms]![AnstallningData_Form]![AnstallningListbox]" value.

I guess this is because i am referencing wrongly since im using a navigation control.

But how should i do this.
What is the correct way?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Your path may be wrong.
if its a subForm,the path is like:
forms!mainform!subname!form!listbox

open the form then use the Builder. Objects,forms,openforms...
It always gets the path correct.
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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