473,624 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2010 Navigation Forms DoCmd.BrowseTo Issue

hyperpau
184 Recognized Expert New Member
Hi All,

It's nice to be back.
I just got my hands on Access again and I was surprised that the magic is still there.

However, the new Navigation Forms in 2010, replacing the switchboard, is new to me. Nevertheless, I figured it out right away, except with one issue.

I can't seem to get the acDataMode to work!
No matter what I choose, acFormEdit, acFormAdd, asFormReadOnly, etc, access seem to ignore this and just simply browses to the form in normal mode.

Googled every possible keyword combination but I have found nothing. Not even on the MicroSoft site.

What am I supposed to do?
Am I missing something?

Expand|Select|Wrap|Line Numbers
  1. DoCmd.BrowseTo acBrowseToForm, "frmEmployee", "Main.NavSub", , , acFormAdd
Please help me. I am pulling my hair on this last piece of my program.

Thanks in advance. I hope the masters, like NeoPa, would be able to read this and help me out once again.
Mar 5 '14 #1
7 9227
topher23
234 Recognized Expert New Member
What is the context in which you're using this command? FWIW, I only know of two "issues" with BrowseTo. First and foremost, the form needs to be open in order for it to work (it isn't an implicit OpenForm). Second, if you are running data from a form and just trying to change the data mode of a subform on that form, entering the Path statement can cause it to fail. I think it's more likely that the second one is your issue, but without any other context I don't have a specific answer.
Mar 5 '14 #2
hyperpau
184 Recognized Expert New Member
Hi topher! Thank you very much for your attention.

You are correct. My concern is the second one.
The forms are already preloaded on to the different nav tabs of my nav form, so 'the form needs to be open in order for it to work' is covered. :)

So my issue really is that I want to change the data mode of my Form.

SO basically, the setup is this.

Main Form with a NavigationSubfo rm

Inside the Navigation Subform, I have my forms frmEmployees, frmEvents, and frmModules preloaded.

I have a button on the Main Form which says 'Create New Employee record'.

What I want is that if I click that button, I want to browse to the Nav tab where frmEmployees is loaded, but I want to go there in Data Entry Mode.

What happens is that my acFormAdd is being ignored.
I am still routed to the right tab but I end up on the first record of the form. The frmEmployees does not have any subform. so basically, it's like MainForm.Naviga tionSubform > frmEmployees

How can I make the Data Mode work? Thanks.
Mar 6 '14 #3
topher23
234 Recognized Expert New Member
Since it's the second issue, try just using
Expand|Select|Wrap|Line Numbers
  1. DoCmd.BrowseTo acBrowseToForm, "frmEmployee", , , , acFormAdd
For some very strange reason not addressed by Microsoft, the PathToSubFormCo ntrol variable seems to override the DataMode. So, although it's not intuitive to leave the Path variable blank, it should fix the DataMode. Let us know if that solves the problem.
Mar 7 '14 #4
hyperpau
184 Recognized Expert New Member
Hi Topher,

The suggestion you gave works but it is not what I'm looking for.
What it did is it closed my Navigation Form and opened the frmEmployees in DataEntry mode, as if I used DoCmd.OpenForm.

What I wanted is to go to the Employees tab of my Navigation Form on DataEntry mode.

However, I found a workaround.
I deleted all pre-loaded forms on my Navigation Form's tabs and just left out 1 tab.

Now, the BrowseTo method simply loads my desired form onto the tab and the Data Mode loads correctly.
If I call on other forms using the BrowseTo method, it simply replaces the current form in the NavSub with the new form I call for.

It gets the job done, although I really wanted to have the forms already loaded on other tabs of my Nav Form.
Anyway to have this done? Thanks.
Mar 8 '14 #5
topher23
234 Recognized Expert New Member
I realized that the method I gave you (not giving the path) is actually a solution for when you call BrowseTo from inside the subform. However, I think I see now what the real issue is. When you specify the path to the subform, the BrowseTo statement expects a change in the SourceObject. However, since you're calling out the same form that is already loaded, it's not re-opening the subform in the new DataMode. The only way I can think of to change the DataMode in the way that you want is to first clear the SourceObject by using
Expand|Select|Wrap|Line Numbers
  1. Forms!Main!NavSub.SourceObject = ""
and then using your BrowseTo statement to refill the subform with the proper DataMode.
Mar 11 '14 #6
hyperpau
184 Recognized Expert New Member
The problem with this is that it changes the SourceObject of whichever is the active tab on the Navigation Form. Not really the Tab where that form is already pre-loaded.

So basically, it just acts the same way as deleting the tabs, and just having one tab in my Nav Form.
Mar 12 '14 #7
zmbd
5,501 Recognized Expert Moderator Expert
hyperpau

The problem is that the ACC2010 Navigation control is a new beast that is poorly documented:

Please read the following threads, I cover some of the aspects of the Navigation Control that you are haveing issues with -

Other than this first one, in no particular order:
[*]http://bytes.com/topic/access/answer...gation-control
>>(1) The navigation control, despite appering as a tab control really is not; therefor, the information contained within the article you posted to does not pertain.
[*]http://bytes.com/topic/access/answer...nt-tab-clicked
>>Read "Best Answer"
>>The remaining thead has some context on the control
[*]http://bytes.com/topic/access/answer...gation-control
>>THis will show you just how bad a lot of the reference material available on this control was (and to a great degree still is) when trying to learn the control. Also a simple solution to a complex question.

[*]http://bytes.com/topic/access/answer...-dialog-window
>> A work around for something you might run into, just keep this handy... it also has a few other links.
[*]http://bytes.com/topic/access/answer...ntrol-subforms
>>Read post #2 and Post#4 - I really should merge these two (^_^)

and I hope that this google-search return works the way it's supposed to as there are other threads here that cover this information too:
https://www.google.com/search?hl=en&...72.IgXDq15QtDE

I'm updating an old frontend to use this new control; thus, I've learned a lot about it thru the school of hard knocks. Any further questions let us know.
Mar 13 '14 #8

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

Similar topics

1
5246
by: Alan Yim | last post by:
Hi folks, My company recently upgraded our Office suite from 2003 to 2010. The problem in particular is with an Access database that was originally designed in Access 2003. The code in question used work in 2003 (see below code). Private Sub engSave_Click() Dim strSql3 As String 'Archive order number and cost data for engine.
0
1993
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 navigation form on open the access paramter box pops up asking for criteria instead of just letting me enter it on the form. Is there a problem using this type of form in a navagation form. SQL for Query: SELECT Orders., Orders., Orders.Received,...
5
3849
by: neelsfer | last post by:
I got a new work laptop last week with Access 2010 pre-loaded.I also installed the new Office 2010 service pack 1. I then loaded 2 of my regularly used Access 2007 + service pack 2 applications on it. The 1 still works fine but is much slower than usual. The 2nd application crashed after 2 days when i made some changes to a few existing forms, corrupting every single form in the process when i closed and reopened the application at some...
9
12492
by: Vernon Halsey | last post by:
I have an Access database that has been is use for approx 8 years. It was originally written in 2000 and subsequently converted to 2003. It consists of a client-unique front-end linked to a shared Access 2003 back-end data storage. Has approx 200 concurrent users with a mixture of full Access 2003, full Access 2007 and Access 2007 runtime. Never crashed in 8 years until we put out first Win7/Office2010 clients on the network. Now it...
4
31374
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 "View" part of the "Home" tab because users like being able to flip between Form View and Datasheet View in the forms. It turns out that on our network, if a user inadvertantly clicks Design View, then the database becomes locked to new users until...
3
6060
by: john latona | last post by:
hi! i realize that access 2010 does not have the username and password function built into it, so i am trying to build it into my db. i have a "login form" with text fields titled username and password. i also have a table containing all usernames and passwords. i also have a query that references the table with criteria set to match the form text box data with the table data. this "verification" occurs on click on a button on the fowm....
3
3186
AR Ratheesh
by: AR Ratheesh | last post by:
Hi, I have Access 2010 and When i'm trying to Export Text files to System folder ("C:\Windows\abc.asc"), in Windows 7 ultimate, couldn't export. But Previously i successfully exported to "C:\windows" in windows xp.But Windows 7 blocks the exporting. Export to other folders is easy and working fine. My Export specification name is wintrl and table is AccountTrl. DoCmd.TransferText acExportDelim, "wintrl", "AccountTrl",...
4
10512
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 intend on keeping the .mdb format for the time being, so I'm not performing a true conversion...just trying to get it to work in the new version. I'm familiar with a number of areas in 2003 that have to be modified to work in 2010, but my issue today...
11
2697
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 have a rudimentary understanding of it. This code was not written by me and I am still trying to understand why it doesn’t work? I have posted the code below; this is what it is supposed to do: I have a main form that displays each record. The form...
5
5509
Seth Schrock
by: Seth Schrock | last post by:
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...
0
8246
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8490
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1489
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.