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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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