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

Copy data Fields on a form to Field on a Table

14
I have some fields on a form that are not related to any table. They texbox used for calculations. I want to copy some of these fields to a table. Example. FormA has (Field1, Field2 and Field3). Then i want to copy these 3Fields in FormA to TableA (Field1, Field2 and Field3)

Thank you in advance
Jan 24 '15 #1
6 1434
Seth Schrock
2,965 Expert 2GB
The easiest way (and usually the best way) is to make the table the record source for the form and then set the control source for each textbox to be the field that you want them tied to.
Jan 24 '15 #2
Rabbit
12,516 Expert Mod 8TB
If it's calculations, there's no need to store them. It's usually better to calculate it as needed so the data is accurate.
Jan 24 '15 #3
Hishow
14
OK even if I cannot copy fields from to table, Is there a way I can first copy selected field using button and use another button to paste those fields into a table

Many thanks
Jan 25 '15 #4
Rabbit
12,516 Expert Mod 8TB
I didn't say it was impossible. I'm saying good design recommends that you don't do that.
Jan 25 '15 #5
Hishow
14
Thanks so much. Now what I did: I placed few data on the table, then used Query(Query1) to do all my calculations. Then used another query(Query2) to extract(from Query1) those fields i actually need. This works for me perfectly.

Thank you all.
Jan 29 '15 #6
Rabbit
12,516 Expert Mod 8TB
Glad you got it all sorted out! Good luck on the rest of your project.
Jan 29 '15 #7

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

Similar topics

2
by: news.hp.com | last post by:
I have situation where I need to copy multiple records (only certain fields) from a Rules table to an Events table based on a selection identified in a combo box. When the selection is made in a...
1
by: Parintas Themis STE Kardias | last post by:
Hi I have two tables the name of one table are fix, the name from the other it's selected from one combo box. How can make with a code under a command button, to Copy the data of the table wich...
1
by: AA Arens | last post by:
I do have two forms. One to add CompanyName and PhoneNumber in a table tblCompany On the 2nd form to fill in the remaining info. With a combo box I choose a CompanyName I added with in 1st form....
3
by: abie16 | last post by:
I'm creating a database for my company. Here we have errors form to calculate the errors done. The data entered in this form need to update into the errors table. This is my code but i'm getting...
6
by: liquidfusion | last post by:
Software: Access 2003 Objective: I have two tables in my database. I want to be able to execute code in a button on a form that verifies that a record in table2 exists via user input with...
1
by: MicMic | last post by:
I have a field called HyperlinkCopy and on exit I want the data in that field to be copied into ViewCertificate. Thanks
2
by: Snowowl | last post by:
First let me admit I'm a newbie with Access.... I am updating a table using one form and want to copy two of the table fields to another table upon clicking save. I see commands to copy the full...
3
by: Jeff Karli | last post by:
What I am trying to do is to , while in the current form, copy data from a field in the current record and paste it into the same field on the same form of a new record. This code below works in one...
6
by: P Ryan | last post by:
I am learning Access 2007 on my own, any help would be greatly appreciated. I have a form which I have associated with a table, TB1. There are 3 values from this table which I would like to...
1
by: rkep | last post by:
i need to create a label system for a customer order system, if a customer select a qty of 2 or more i want to be able to add that line multiple times to the print table. i cant seem to get this to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.