473,386 Members | 2,114 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,386 software developers and data experts.

Navigating between forms


I have a database where most of the activity takes place on the
demographic forms. There are a few instances where the user will need
to navigate to a separate screen, but infrequently. So I set up a
series of click buttons where the user can click on it and open the new
form. I am using a macro with "openform." This form has some
information on it, along with a subform.

However, when I do this, the demographic table associated with the form
is not being carried over to the new form. Is there a way to do that?
I'm thinking there probably is, but not using an openform macro.

Thanks.

Sep 17 '06 #1
2 1887
Jeff wrote:
I have a database where most of the activity takes place on the
demographic forms. There are a few instances where the user will need
to navigate to a separate screen, but infrequently. So I set up a
series of click buttons where the user can click on it and open the new
form. I am using a macro with "openform." This form has some
information on it, along with a subform.

However, when I do this, the demographic table associated with the form
is not being carried over to the new form. Is there a way to do that?
I'm thinking there probably is, but not using an openform macro.

Thanks.
Is it possible your demographic form has a new record, or an existing
record with modified data, that is not being saved prior to opening up
the new form.

Set runcommand/saverecord first prior to opening the new form.
Sep 17 '06 #2
Jeff wrote:
I have a database where most of the activity takes place on the
demographic forms. There are a few instances where the user will need
to navigate to a separate screen, but infrequently. So I set up a
series of click buttons where the user can click on it and open the
new form. I am using a macro with "openform." This form has some
information on it, along with a subform.

However, when I do this, the demographic table associated with the
form is not being carried over to the new form. Is there a way to do
that? I'm thinking there probably is, but not using an openform macro.

Thanks.

Your OpenForm command needs to include a filter for the form being opened. The
OpenForm method in VBA has an optional WHERE argument that does this. I have no
idea how that works in a macro as I never use them.

In design view of the demographic form you could add a new command button making
sure that the Toolbox wizard is enabled. One of the choices for the wizard does
exactly what you want.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Sep 17 '06 #3

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

Similar topics

15
by: brundlefly76 | last post by:
As a Perl programmer for many years, this week I decided to stick my toe back into C for a specific project. During which I was tinkering with C++, which I have no production experience in. I...
3
by: Scott | last post by:
Creating an application in Access with a number of "screens" which are just forms linked together by command buttons (click button, opens new form, closes old form). Each form opens and...
1
by: Emma Middlebrook | last post by:
Hi, I've created a form that has basic navigation functionality. There is a panel on the main form that contains several UserControl form objects. I've added all the forms to the control...
2
by: Daveyman | last post by:
Hi, I'm having a problem navigating to/from a subweb using forms authentication. The setup in IIS is as follows: TestSite +----SecureDir +----ReportsSubWeb In VS.Net 2003 this has been...
2
by: PeteSmith | last post by:
I have an application with 2 vb.net forms and an Excel Spreadsheet. I am struggking to get the navigation betwee the forms to work properly On startup frmMain is loaded. This frm has a button to...
1
by: dBNovice | last post by:
Please help! I have 3 forms: Task, Subtask, Elements. Elements is a subform of Subtask and Subtask is a subform of Task. I am able to navigate from Task to Subform to Element and from Element to...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
1
by: JohnMOsborn | last post by:
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In...
25
by: robertmeyer1 | last post by:
Hi, I am trying to set up the forms for my DB. I have the table structure and relationships set up properly. I have an issue with 2 of the tables: tblClientInformation and tblCompanyType. The...
0
by: in10se | last post by:
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...

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.