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

Programatically Enter Data Into Another Form

My data has 10 accounts.

Two forms are opened simultaneously. Form1 is unbound and displays three
records:
Account Quantity
101 17
104 25
107 13

Form2 is a bound continuous form displaying records for all 10 accounts. The
records in Form2 include the Account#.

How can I programatically enter 17, 25, and 13 from Form1 to the Quantity field
in the records in Form2 where the Account#s are 101, 104 and 107 respectively?
The intent is to enter what's in Form1 into Form2, view the data from Form1
along side other data in Form2 and when Form2 is closed, save the data.

Appreciate all help!

John
Nov 13 '05 #1
1 2072
John,

When Form1 is unbound, how can this form show records?
Also: Immediately when you go to another record in your Form2 the former record is saved.
Only the last changed record will be saved when you close the form, the other records are saved
earlier.

If you are trying to validate input before it's *really* saved, you might want to enter data in a
temptable in Form1.
Then (if needeed) maybe in a subform you can show all kind of data from the current record
(account).
Use a validation-flag and set the flag to True when validation-rules are met. Use a boolean-field
(Yes/No)
Add a routine to the closing-event of the form to add the validated record(s) to your *real* table.
You can use a simple query to do this.

--
Hope this helps
Arno R

"John" <jy****@Earthlink.net> schreef in bericht
news:EH*****************@newsread3.news.atl.earthl ink.net...
My data has 10 accounts.

Two forms are opened simultaneously. Form1 is unbound and displays three
records:
Account Quantity
101 17
104 25
107 13

Form2 is a bound continuous form displaying records for all 10 accounts. The
records in Form2 include the Account#.

How can I programatically enter 17, 25, and 13 from Form1 to the Quantity field
in the records in Form2 where the Account#s are 101, 104 and 107 respectively?
The intent is to enter what's in Form1 into Form2, view the data from Form1
along side other data in Form2 and when Form2 is closed, save the data.

Appreciate all help!

John



Nov 13 '05 #2

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

Similar topics

3
by: Tom Donohue | last post by:
Hello All: I've got, what appears to be a simple problem, but am having a brain cramp on determining the best way to implement. Here is the requirement (I am using ASP.net v1.1) User enters...
3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
1
by: Susan | last post by:
I have a bound form and subform and am trying to enter the data in both forms programatically. The Linkmaster and Linkchild properties are set. My intent is to be able to look at the data before it...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
0
by: JayD | last post by:
I am using Visual Web Developer (vb.net) and have a gridview in a form. I can update records using standard EDIT/UPDATE buttons. However, there are two fields in every record (called ModifiedBy and...
8
by: =?Utf-8?B?TGlzYUNvbnN1bHQ=?= | last post by:
I have a data entry application. Due to ease and location, the users utilizie the enter key to move from field to field, rather than the tab key. Depending on the data they enter into a field,...
1
by: Grey Alien | last post by:
Apologies for the cross post. I am quite desperate and do not know which ng would be the most appropriate. I am trying to programatically POST an ASP form, to allow me to log on to a site...
9
by: hrreece | last post by:
I have an Access 2002 database that has a form that can be used to review individual records. At the bottom of the form are buttons that are linked to functions that allow the user to "Find a record...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
I need to programatically upload a text file to a web server using the HTTPWebRequest object within .Net 2.0. So far, I have determined that: - I need a HTTP content-type of...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...

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.