473,396 Members | 1,812 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,396 software developers and data experts.

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 1532
"Mark" <mm***@Earthlink.net> wrote in message news:<1i*****************@newsread3.news.atl.earth link.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***@Earthlink.net> wrote in message news:<1i*****************@newsread3.news.atl.earth link.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
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...
1
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...
1
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....
4
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...
4
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...
1
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...
3
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...
5
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...
3
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...
3
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...
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
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...
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
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...
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.