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

Create String of Forms - Passing Identifier from Form to Form

I am trying to create an Access "application" that will let users step through the process of creating data. In form 1, the user selects the type of issue that they are entering. In form 2, the user fills in information about the issue. In form 3, the user identifies what locations are affected by the issue. I know that I could make form 2 a subform to form 1, but my users really prefer a more "wizard-like" application.

The problem that I am having is that when I create a new record on form 1, how do I pass the identifier field to form 2? I can't find information on how to do this when the data record doesn't get created until the user clicks on the "next" button on form 1.

TIA!
Feb 8 '08 #1
1 1385
ADezii
8,834 Expert 8TB
I am trying to create an Access "application" that will let users step through the process of creating data. In form 1, the user selects the type of issue that they are entering. In form 2, the user fills in information about the issue. In form 3, the user identifies what locations are affected by the issue. I know that I could make form 2 a subform to form 1, but my users really prefer a more "wizard-like" application.

The problem that I am having is that when I create a new record on form 1, how do I pass the identifier field to form 2? I can't find information on how to do this when the data record doesn't get created until the user clicks on the "next" button on form 1.

TIA!
There are several Methods of passing Values between Forms, the one I particularly like is to use the last Argument of the OpenForm() Method which is called openargs. To pass the value of the Primary Key Field ([PrimaryKey]) on Form1 to Form2, you can use code similar to the following:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "Form2", acNormal, , , acFormEdit, acWindowNormal, Me![PrimaryKey]
While in the context of Form2, you reference this passed value from Form1 by using the Statement:
Expand|Select|Wrap|Line Numbers
  1. Me.OpenArgs
Feb 9 '08 #2

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

Similar topics

6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
8
by: Steve Neill | last post by:
Can anyone suggest how to create an arbitrary object at runtime WITHOUT using the deprecated eval() function. The eval() method works ok (see below), but is not ideal. function Client() { }...
6
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
5
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
27
by: max | last post by:
Hello, I am a newbye, and I'm trying to write a simple application. I have five tables with three columns; all tables are identical; I need to change some data in the first table and let VB...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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,...
0
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...

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.