473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Navigation form in Access 2010 producing error first time a different tab is clicked

Seth Schrock
2,965 Expert 2GB
I have created a navigation form in Access 2010 using the horizontal tabs, 2 levels style. This form is my startup form. In the top row, I have to options. Under each option are several sub-tabs with forms bound to them. When I first open the database and click on the second of the two main tabs, I get a VBA error message saying This action will reset your project, proceed anyway?. If I click OK, I can then click back and forth between the two main tab without any problem I can even click on the sub-tabs. If I close the form and reopen it and try to click on the second main tab, I get the error message again. I have no code or macros in any events in the navigation buttons, controls, or the subform, so it must be an internal code that is running and causing the error. I have no idea how to troubleshoot this, but I've go to get it fixed before I can publish this database as I'm sure that Access Run-time will crash when this happens as it doesn't have any error handling capabilities.

How can I stop this error message?

Edit: I just tried making a new form and adding the navigation control with the same setup and it doesn't get the error. So I might just try starting over as there isn't much code to copy over. I would still like to know what caused this so that I can keep from having this issue again.
Feb 8 '14 #1

✓ answered by zmbd

Seth
Search this site use "ZMBD" "Navigation Control"
>removed bad link

You'll note that the ACC2010-Navigation Control has some quirks.

One of which is that if you use a two (or more) tiered control panel and the parent "Has Module" is true, you're sunk - period. So the "ON Load/Open/etc..." events cause an issue. SO will any code in command buttons etc...

You need to move the VBA from Subs to Functions for all VBA used in the ACC-2010-NavigationControl parent form and then use the MACRO language to call the VBA functions. THUS< the parent form "Has Module" property stays false/no and you can still use the VBA script.

Welcome to the NEW and IMPROVED switch board concept.

5 5480
zmbd
5,501 Expert Mod 4TB
Seth
Search this site use "ZMBD" "Navigation Control"
>removed bad link

You'll note that the ACC2010-Navigation Control has some quirks.

One of which is that if you use a two (or more) tiered control panel and the parent "Has Module" is true, you're sunk - period. So the "ON Load/Open/etc..." events cause an issue. SO will any code in command buttons etc...

You need to move the VBA from Subs to Functions for all VBA used in the ACC-2010-NavigationControl parent form and then use the MACRO language to call the VBA functions. THUS< the parent form "Has Module" property stays false/no and you can still use the VBA script.

Welcome to the NEW and IMPROVED switch board concept.
Feb 9 '14 #2
Seth Schrock
2,965 Expert 2GB
So if I reduce my number of levels to one, are there any limitations on the code?

Your link doesn't work. I did a search through Google, and I got 1270 results. Anything else to narrow it down? I looked at the first two results and didn't find anything that I hadn't already discovered in my own research.
Feb 9 '14 #3
zmbd
5,501 Expert Mod 4TB
Should work; however, if you create the accde version, be prepared to also move to macro level triggers for the parent form.

(sorry about the bad link, thought the bytes.com would stay put - nonetheless you did find something :) )
Feb 9 '14 #4
Seth Schrock
2,965 Expert 2GB
I'll give that a try tomorrow when I get to work. I don't use the accde version as the users are only running Access Runtime and don't have any database editing capabilities anyway.

It sounds like I will need to learn how to use Macros to call VBA functions if I want to keep using the navigation control in the future though.
Feb 10 '14 #5
Seth Schrock
2,965 Expert 2GB
It works now. I moved all the code to another module and used macros to call the functions and I no longer get the error message when changing the first level tabs.

Thanks Z.
Feb 10 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: bart plessers | last post by:
Hello, I have a form with some checkboxes, i.e. The default value of this checkbox is determined in a global file (config.asp), that is included in first line of the form, i.e. ShowFilenames...
4
by: ABonk | last post by:
Hello, I keep receiving this error when typing in my web address Index of / Name Last modified Size Description Parent Directory 11-May-2006 22:20 ...
0
by: araman | last post by:
I currently have a form (customer orders 3 ) that automatically fills in 2 boxes in a form with an afterupdate event . When I try to use a navigation form with ths form I receive an error stating the...
0
by: araman | last post by:
Hello, I have a form and subform . The Main form contains four boxes to enter criteria for the query that fills the subform. Outside of the navigation form it works great. when i add it to the...
4
by: jbrumbau | last post by:
Hello, In Access 2010/2007, how do you prevent users from flipping into design view from the ribbon? I do not want to hide the entire ribbon (DoCmd.ShowToolbar "Ribbon", acToolbarNo) or even the...
12
by: Corwin Moyne | last post by:
I have a table called "Dies". A die is used in a production process, and after its used I want to update it's "Revolutions". Amongst others, I have a field called Total Revolutions and Repeat in this...
4
beacon
by: beacon | last post by:
Hi everybody, My title may not exactly describe my issue, so please forgive my lack of creativity today. I've got a database that was created in Access 2003 that I've opened in Access 2010. I...
11
by: Redbeard | last post by:
I have just upgraded to Access 2010 (64 bit) from Access 2007. There were a few minor issues in the database which I have resolved but this one piece of code just won’t work. I do not write VBA but...
2
by: Rinis | last post by:
Keep in mind that I'm new to VBA with access. so try to break it down as much as possible. I just got some fantastic help here earlier so I hope for the same luck. I'm doing a basic timeclock...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.