Scroll bars not working properly

Alright I just read your reply and I will try this. Same code name but repeated for every subform name I assume.

No! - the subform control on the navigation form

Perhaps I am misunderstanding how your Navigation form works. I am assuming that it consists of a number of buttons and a subform which displays data and when you click on one of the buttons it refreshes the data in the subform control or changes the subform source for another form.

Perhaps you can explain how it works
 
Sorry for the long answering time, I was on vacation:)

Yes, my navigation control consists of a number of buttons, some which have sub-buttons. Some do not.

I want to change all of this for, f.ex. a navigation button called 'Archives', which dates back several years, where you would need to scroll to go along the form.

I will try playing around with it today, if you have anything to help me I would love to hear it:)
 
Forgive me being confused. This is what I have done:

Option Compare Database

Private Sub Form_Resize()

NavigationButton120.Width = InsideWidth - NavigationButton120.Left - 60
NavigationButton120.Height = InsideHeight - NavigationButton120.Top - 60

End Sub

Under the sub-form control code, with the name of the sub-form "navigationbutton120"

Which gives me a run time error 424
 
Hi Kasper,

Hope you had a good vacation!

Error 424 means an object is required which means it can't find NavigationButton120

So just to confirm (you need to be able to answer yes to both of these for it to work!):

the Form_Resize sub is in your main form?
is the name of your subform control on your main form NavigationButton120? (not the subform)
 

Users who are viewing this thread

Back
Top Bottom