Hello,
I have a form that I need to transfer some of the info into a second form based on a different
query. The Id field is the same for data sources for both forms, but are based on queries that
join different tables. I need to create a new record in form 2 by pulling the ID over__I have that
part done-- and 2 fields over and filling in on form 2. The record source between the 2 forms cannot
be joined except by a many to many relationship--so I just want to drag Field1 and Field 2 to the
new form and fill in the like fileds on the second form. I know this stores data in 2 places but
this is the way I must do it. What is the easiest way to drag the values from Field1 and Field2 on
form 1 to Form2? Any help would be appreciated.
Thanks
Form1--based on a 1-many join betwen a person table*(one side) and an events table
Form2--based on a 1-,many join between a person table (one side) and an events2 table
Cannot join events, event2 and person tables becasue it creates a many-many relationship and the
data in like fileds between Events and events2 is not in good shape. 2 4174
If you open the second form from the first one using a DoCmd.OpenForm
statement, you can pass the information in the OpenArgs argument.
Otherwise, you need to select an appropriate event for the second form, say
the Load event or the Activate event, and use code something like:
Me!txtSomething = Forms!frmTheFir stFormsName!txt Something
Larry Linson
Microsoft Access MVP
<al*****@cox.ne t> wrote in message
news:3f******** *******@news.we st.cox.net... Hello,
I have a form that I need to transfer some of the info into a second form
based on a different query. The Id field is the same for data sources for both forms, but
are based on queries that join different tables. I need to create a new record in form 2 by pulling
the ID over__I have that part done-- and 2 fields over and filling in on form 2. The record source
between the 2 forms cannot be joined except by a many to many relationship--so I just want to drag
Field1 and Field 2 to the new form and fill in the like fileds on the second form. I know this
stores data in 2 places but this is the way I must do it. What is the easiest way to drag the values
from Field1 and Field2 on form 1 to Form2? Any help would be appreciated.
Thanks
Form1--based on a 1-many join betwen a person table*(one side) and an
events table Form2--based on a 1-,many join between a person table (one side) and an
events2 table Cannot join events, event2 and person tables becasue it creates a
many-many relationship and the data in like fileds between Events and events2 is not in good shape.
Thank you!! Otherwise, you need to select an appropriate event for the second form, say the Load event or the Activate event, and use code something like:
Me!txtSomething = Forms!frmTheFir stFormsName!txt Something
Larry Linson Microsoft Access MVP
<al*****@cox.n et> wrote in message news:3f******* ********@news.w est.cox.net... Hello,
I have a form that I need to transfer some of the info into a second form based on a different query. The Id field is the same for data sources for both forms, but are based on queries that join different tables. I need to create a new record in form 2 by pulling the ID over__I have that part done-- and 2 fields over and filling in on form 2. The record source between the 2 forms cannot be joined except by a many to many relationship--so I just want to drag Field1 and Field 2 to the new form and fill in the like fileds on the second form. I know this stores data in 2 places but this is the way I must do it. What is the easiest way to drag the values from Field1 and Field2 on form 1 to Form2? Any help would be appreciated.
Thanks
Form1--based on a 1-many join betwen a person table*(one side) and an events table Form2--based on a 1-,many join between a person table (one side) and an events2 table Cannot join events, event2 and person tables becasue it creates a many-many relationship and the data in like fileds between Events and events2 is not in good shape.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Larry L |
last post by:
I have a Module that declares several arrays as public, some string, some
integers. I then have 2 forms. Form A is the main form, that loads on
start-up, and has a command button to open Form B. On form B there are
several text boxes where the array values can be changed, however when I
close B and go back to A, those values are lost. I thought Public meant
Public?
Larry L
|
by: Andrew V. Romero |
last post by:
I have been working on a function which makes it easier for me to pull
variables from the URL. So far I have:
<script language="JavaScript">
var variablesInUrl;
var vArray = new Array();
function loadUrlVariables()
{
varString = location.search;
|
by: laurenq uantrell |
last post by:
I'm using Access 2K. I'm hoping someone can tell me which method
performs faster- (currently I'm using a mix of both methods)
a.) creating custom properties and then calling functions to set and
retrieve the values... (ie:
application.currentproject.properties(propName))
b.) creating global variables in the form of an array and using a
function to populate and retrieve them.
|
by: Paul Yanzick |
last post by:
Hello,
I am trying to develop a book tracking application for my capstone in
school, and am running into a problem.
The application is an ASP.Net application written in C#. The first page you
go to is a login form, which will set several session variables with the
name used to log in, appropriate security level and some other misc
variables, and then will go to a main menu for each particular security
level using Server.Transfer. ...
|
by: David McCormack |
last post by:
I have a small project that I'm writing to help me learn C# and the .Net
Framework. This project is a WinForms program with multiple forms that
accesses MSDE. I've got most of it done but I've hit a slight brick wall.
Does anyone have any recommended strategies for dealing with application
wide variables? i.e. the user name of the current user that's logged in
to the application rather than the PC.
The best idea I've come up with so...
| |
by: Earl Teigrob |
last post by:
I what to create global variables that are based on the user session. I
created a class that is instanced on session_start and hold all the users
global variables within that class. This works great unil the user stays on
the page for more then the timeout period (20 minutes or whatever) Then when
they click a link the next page breaks because the current session has timed
out . Because ASP.NET rebuilds the old page and then fires the...
|
by: WJ |
last post by:
I am attempting to use the Global.Asax to store my user's configuration.
Here is the concept:
1. User logs on into the site using Form Authentication.
2. I capture the user Credential, verify it and then assign this Logon ID
(user) a so called User's serverside cookie.
3. My system is configured to accept 1,024 concurrent users, this means that
my Global.Asax will host no more than 1,024 Logon IDs and their associated
cookies/variables....
|
by: Sandman |
last post by:
I dont think I understand them. I've read the section on scope in the
manual inside out.
I'm running PHP 5.2.0 Here is the code I'm working on:
//include_me.php
<?php
$MYVAR = array();
global $MYVAR, $a;
?>
|
by: chochote |
last post by:
Hi,
I have a PHP script that does some processing, and stores an error
message as a variable. The script then redirects to another script
with the error string in the URL, with the second script displaying
the message and continues with the rest of the logic.
Now I want to hide the error message from the URL, but the second
script needs to continue working as is. How can I do this? I have
thought about md5'ing the message but the URLs...
|
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...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |