473,473 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trouble with navigation


Form: Main Menu

From the Main Menu you open up the main form, “Program_services”
(unbound) which serves various purposes aside from the fact that it has
a single unbound, first, subform, “frmMain” with two option buttons.

Button #1 opens a Calendar GRID option, which is on the, “frmMain” form;
again is unbound.

Button #2 opens a Registration option, which contains a, second,
subform, “frmStatus” which is bound (tblStatus table)
The code behind the “frmStatus” subform includes the following which
works but only when I use it as the first subform to the, “frmMain” form
as a main, popup, form:

Private Sub Form_AfterUpdate()
RequeryAllCtls
*Forms!frmMain.DrawGrid (The, DrawGrid is located on the first
subform, “frmMain”, and not on the “frmStatus”.)
End Sub

Also, the frmStatus form also contains 4 synchronized combo boxes; all
four boxes synch together correctly as designed.
Problem:

However, once I synchronize all four combo boxes to call up information
to include in the current record, I try to navigate to another record.
When I try to use the navigation button to move from record to record,
when the “frmMain” form is used as the first sub form to,
“Program_Services” (main form), I get the following error pointing to
code behind the form, “frmStatus”:

*Run-time error '2450':

Microsoft Office Access can't find the form 'frmMain' referred to in a
macro expression or Visual Basic code.

My thinking was that frmMain cannot be found until the main form
“program_services” was found. I tried the follow combinations; nothing
works:

Forms![program_services].frmMain.DrawGrid
Forms![program_services]![frmMain].DrawGrid
Forms!program_services!frmMain.DrawGrid
Forms!program_services!frmMain.DrawGrid
Forms!program_services.frmMain.DrawGrid

John
*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
1 1648
When you need to post the same question to several groups (not often
necessary, as most of the same people lurk in several groups), please put
the names of all the groups into the same post, instead of posting to each
group individually.
That way, everybody will see all answers, as well. People won't be
answering questions that someone else has already addressed. And you won't
have to go hunting in the other groups you posted to, looking for the
answers I've posted for you...

"John Phelan-Cummings" <jp*********@hotmail.com> wrote in message
news:Xy**************@news.uswest.net...

Form: Main Menu

From the Main Menu you open up the main form, "Program_services"
(unbound) which serves various purposes aside from the fact that it has
a single unbound, first, subform, "frmMain" with two option buttons.

Button #1 opens a Calendar GRID option, which is on the, "frmMain" form;
again is unbound.

Button #2 opens a Registration option, which contains a, second,
subform, "frmStatus" which is bound (tblStatus table)
The code behind the "frmStatus" subform includes the following which
works but only when I use it as the first subform to the, "frmMain" form
as a main, popup, form:

Private Sub Form_AfterUpdate()
RequeryAllCtls
*Forms!frmMain.DrawGrid (The, DrawGrid is located on the first
subform, "frmMain", and not on the "frmStatus".)
End Sub

Also, the frmStatus form also contains 4 synchronized combo boxes; all
four boxes synch together correctly as designed.
Problem:

However, once I synchronize all four combo boxes to call up information
to include in the current record, I try to navigate to another record.
When I try to use the navigation button to move from record to record,
when the "frmMain" form is used as the first sub form to,
"Program_Services" (main form), I get the following error pointing to
code behind the form, "frmStatus":

*Run-time error '2450':

Microsoft Office Access can't find the form 'frmMain' referred to in a
macro expression or Visual Basic code.

My thinking was that frmMain cannot be found until the main form
"program_services" was found. I tried the follow combinations; nothing
works:

Forms![program_services].frmMain.DrawGrid
Forms![program_services]![frmMain].DrawGrid
Forms!program_services!frmMain.DrawGrid
Forms!program_services!frmMain.DrawGrid
Forms!program_services.frmMain.DrawGrid

John
*** Sent via Developersdex http://www.developersdex.com ***

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: George Hester | last post by:
http://tinyurl.com/5uj6w The lower middle icon the "block" should not drop down when the mouse is over it. How can I stop that? Also the navigation divs both top and bottom should follow the...
59
by: Rico | last post by:
Hello, I have an application that I'm converting to Access 2003 and SQL Server 2005 Express. The application uses extensive use of DAO and the SEEK method on indexes. I'm having an issue when...
1
by: ianv2 | last post by:
Hi Can anybody help me with my CSS navigation. I want it to appear on one line - horizontally, but the menu items are displayed under one another? Any ideas from my code where I am going...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
10
by: EA | last post by:
I am sure I must be missing something about building navigation bars with CSS. Yes it is a very clever and efficient way to format navigation structures on simple one navigation level webs, i.e....
1
by: Saciro | last post by:
Hi, I'm having some trouble with a java script on my page http://www.multiseals.com.sg/ I'm using IE 7 and there should be 2 drop down menus that appear when the "ABOUT US" and "PRODUCTS"...
0
Screaming Eagle
by: Screaming Eagle | last post by:
Ok, so some associates and I are building a website, and I'm in charge of the design and layout. I've decided to go with a simple navigation bar on top contained in its own div. Under the navigation...
2
by: Dawgs9604 | last post by:
I am trying to get a floating center table. I have tables on the left and right, but I am having troubles in particular with my center and right floating boards. I have set the width the boards are...
5
by: p vs np | last post by:
Hi. I have been trying to fiddle around with some layout managers, the CardLayout in particular. The idea I had was : I must be able to accept multiple panels on one frame, i.e, i must have the...
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
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...
1
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...
0
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...
0
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,...
1
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.