473,785 Members | 2,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy data from subform1 to subform2

I have a project management database and it has a form called Estimator that
calculates the cost of about 10 parts to a project. You can change parameters,
click a Calculate button and all the costs are recalculated. Estimator works
great!

One of the parts contains an itemized list of up to six components that can be
added up to arrive at the cost of that part. The components are listed in a
subform sort of like quantity, description and extended price. The components
are selected in Estimator.

There is another form called ProjectSale that is opened from Estimator. Once the
acceptable set of parameters are selected in Estimator and the project cost is
calculated, the Project Sale form is opened and the data in Estimator is
programatically entered into the project sale form. A subform needs to be added
to the project sale form to record the components that went into the estimate of
the one part discussed previously. Let's say we need to programatically enter
quantity, description and extended price. They are already in the subform in
Estimator. What is the easiest way to programatically copy them from there to
the subform in the project sale subform?

Thank you!

Mark
Nov 13 '05 #1
2 1558
"Mark" <mm***@Earthlin k.net> wrote in message news:<1i******* **********@news read3.news.atl. earthlink.net>. ..
I have a project management database and it has a form called Estimator that
calculates the cost of about 10 parts to a project. You can change parameters,
click a Calculate button and all the costs are recalculated. Estimator works
great!

One of the parts contains an itemized list of up to six components that can be
added up to arrive at the cost of that part. The components are listed in a
subform sort of like quantity, description and extended price. The components
are selected in Estimator.

There is another form called ProjectSale that is opened from Estimator. Once the
acceptable set of parameters are selected in Estimator and the project cost is
calculated, the Project Sale form is opened and the data in Estimator is
programatically entered into the project sale form. A subform needs to be added
to the project sale form to record the components that went into the estimate of
the one part discussed previously. Let's say we need to programatically enter
quantity, description and extended price. They are already in the subform in
Estimator. What is the easiest way to programatically copy them from there to
the subform in the project sale subform?

Thank you!

Mark


Sounds like an append query should work. Just grab the PK from the
Estimate form, and run your append query.
Nov 13 '05 #2
"Mark" <mm***@Earthlin k.net> wrote in message news:<1i******* **********@news read3.news.atl. earthlink.net>. ..
I have a project management database and it has a form called Estimator that
calculates the cost of about 10 parts to a project. You can change parameters,
click a Calculate button and all the costs are recalculated. Estimator works
great!

One of the parts contains an itemized list of up to six components that can be
added up to arrive at the cost of that part. The components are listed in a
subform sort of like quantity, description and extended price. The components
are selected in Estimator.

There is another form called ProjectSale that is opened from Estimator. Once the
acceptable set of parameters are selected in Estimator and the project cost is
calculated, the Project Sale form is opened and the data in Estimator is
programatically entered into the project sale form. A subform needs to be added
to the project sale form to record the components that went into the estimate of
the one part discussed previously. Let's say we need to programatically enter
quantity, description and extended price. They are already in the subform in
Estimator. What is the easiest way to programatically copy them from there to
the subform in the project sale subform?

Thank you!

Mark


Append the records to the proper table and requery the rowsource of the subform?
Nov 13 '05 #3

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

Similar topics

5
2063
by: JJ | last post by:
I have a MainForm/subform1/subform2 setup that I thought was working but maybe I just hadn't tested it enough or broke it as I added more features. The database has 2 main tables: Companies and AgreementHistory. On my MainForm I get the CompanyName from the Companies table. For subform1 I get the AId, and 3 date fields plus a calculated field from a query based on the AgreementHistory table linking it to MainForm using CompanyName. For...
1
1816
by: dtlabo | last post by:
Thank you in advance for any assistance! I have a Access 2000 database in which we are keeping track of package details for orders to be sent to customers. Example: We have an order for Company XYZ and after all the parts are pulled they are packaged into three cartons that will be shipped to the customer. I have a Form that has two subform. Subform1 is for data display only. Subform2 is for data entery. As each carton is packed it's...
1
2209
by: Trent | last post by:
I am in the design phase of a new database and am having a devil of a time with a subform. I have three tables that relate to problem - Suppliers tbl, Customers tbl and a SuppliersCustomers tbl. The intent is to have the user enter in spend information by customer with each supplier. Sounds simple enough right? The common fields in each table are as follows:
4
2715
by: Robert | last post by:
Have main form with an unbound subform1 which is used for data entry. Subform1 has a nested continuous unbound subform (subform2) which is used to enter multiple records related to the record being entered in subform1. Am using DAO method to save the records entered into subform1 & 2 into the underlying tables (table1 & table2). Record being entered in subform1 only gets its unique identifier when saved to underlying table (primary key...
4
1679
by: Wout | last post by:
Hello there, i have a main form to define products in. i have a subform1 to fill in the related materials i have a subform2 to fill in the machines to process the materials subform1 is related to mainform through "ProductId", subform2 is related to subform1 through "MaterialId" both subforms are displayed on the mainform. i need to find out how i can copy a product-record including all
1
1267
by: David | last post by:
Using Access 2002. I have a form with several subforms. Subform2 allows the user to insert a record into a table. One of the fields in this table is an account number, which is displayed in Subform1. I don't want the user to have to enter the account number in Subform2, rather, it should pull from Subform1. How can I accomplish this? Thanks,
3
1878
by: colleen1980 | last post by:
There are two continuous subforms in main form. All are linked with ticketNum. When user comes to subform2. I need that Field3 of subform2 will automatically filled with field2 (field2 is a textbox) of subform1. Field3 is a listbox where i need that user has to select single or multiple values. control which i am using is a listbox in field3. How to i do that needs help. Thanks.
5
2102
by: NewtoAccess | last post by:
I have a MAINFORM with a Subform1 which has another subform2. I want to copy the 'PORT_ID' field from subform2 and paste it to MAINFORM field called 'PORTA'. I was thinking of having a button in subform2 which would copy and paste all at once.
3
9246
by: Richnep | last post by:
Hi all, I have tabbed subforms where I need to copy one field value from one subform over to another subform. Although I can run an update query to accomplish this I would like to do it through VBA. sub tables relationships are 1:N with the main table. So the recods display like this in the subform:
3
1440
by: Kappucino XL | last post by:
Hey There... I have two datasheet subforms, on a mainform: Subform1 and subform2. They receive their info from two separate tables. Now, I need to copy information from subform1 to a field in subform2. Hope my Question is clear and not too stupid...
0
10324
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
10090
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
9949
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
8971
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...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
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();...
1
4050
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
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
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...

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.