473,766 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using a module to refference/control navigation buttons on a subform

In the process of polishing up my (last) beta application; I have been
exploring all the possible ways of speeding up my forms. I realized that
numerous a forms under various application modules/suites lots of the
same navigation buttons.

I thought of creating a macro to handle all this, and just reference the
macro, etc, in order to reduce the amount of forms coding/duplication
from form to form. However, I have no idea of where macros are going in
future
versions of MS Access. I thought about using a single VBA/module, or
different modules, for handling each of the commands.

I since used code for a module containing all the navigation commands to
be referenced from the different forms that I use with my own navigation
buttons.
This works as along as the navigation button is located on the main form
with the following code in the, "On Click" for the e.g., Previous
button:

=navtoPrevious([activecontrol].[parent])

If I want to place the same code on a sub form it does not work. Since
this only seems to works on main (parent) forms, I have also tried the
following, also without success:

Retval= navtoPrefious(M e),

and,

Call navtoPrevious(M e),

and, finally,

navtoPrevious Me

None of these options seem to work. So, I'm back to square one in
getting all this to work. Has it ever been done before? Are ther any
models, articles, ideas, or code samples out there to study/use?

Thanks,
John

*** Sent via Developersdex http://www.developersdex.com ***
Jun 29 '06 #1
0 1343

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

Similar topics

2
2278
by: Rob | last post by:
Hello Access Gurus! I am developing an application in A2K.I have a subform in which 3 fields exist.The link between the main being an ID field.The other two fields are both text fields one for the system and the the other system number. I want to control the subform events in the sense,some of the system contain only numeric entries and hence i should prevent users from entering non numeric characters.When the users enter manually,if...
6
3440
by: MX1 | last post by:
Hi, I've created a series of navigation buttons to be used as a standard across many forms in an Access DB. Does anyone know an easy way to cut and paste these navigation buttons into each new form I create. Re-creating them is VERY Painful and regular cut and paste doesn't work. I've read something about making a standard module for each button but I don't know how to assign that to the new buttons on each form. Help.... :(
12
19014
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course, frmBrowseNegsSubform. I would like to perform an ascending or descending sort on any of the 7 columns shown in datasheet view in the subform control. I've been unsuccessful. Is there something tricky about sorting in subform controls?
19
4108
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
0
1463
by: misscrf | last post by:
I have an entry form which has a tab control. If print screens are needed, please let me know and I will prepare them and post them. Anyway, this tab control has 3 pages. When I am on one of the pages, it has 2 subforms. Now I do have onexit code for the last field of the 2nd form, which sets focus to the first field of the next form on the next page. Here is the thing. A user might be on the last subform on the last page. Then they...
1
1662
by: John Phelan-Cummings | last post by:
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,
14
4040
by: Rational Repairs | last post by:
I am trying to create global code for navigation use in all my forms -- including subforms. I searched, and searched, but can not find how to globally reference a subform object. I need to have the navigation buttons on the subform itself, but I would like to code to be global so I can reuse it in my many subforms. but only as a control in the partent form. So how can I change records in a control? I have tried to reference the...
3
4154
by: ApexData | last post by:
I'm starting a new project. A Personnel System. I have considered opening a single bound form to the main employee table. The user can scroll the records to any individual. I would like to have a tab control at the top of the form which would allow the user to select (PERSONAL), (TRAINING),(DISIPLINARY),and (SICKLEAVE) Tabs. Each Tab should open a FORM and display the relavant TABLE of records tied to the Employee being viewed in the...
4
2088
by: Regnab | last post by:
I've got a form - "frmLookup" (with a subform) that works very happily on its own. The form has a list box, which when updated requeries the subform to display the appropriate results. The problem is that for the final user interface, I had planned to use a "frmDisplay" form which had a number of menu items and then depending on what the user selected, it would display the appropraite form in a subform beneath the menu items. I did this...
0
9568
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
10168
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...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9837
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
8833
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...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
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 we have to send another system
2
3532
muto222
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.