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.
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 5484 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.
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.
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 :) )
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.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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 ...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |