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

Copy Data From Subform to Table

1
Hello,

I have a form that contains a subform, what this form is for is to add planned hours to jobs. What I want to do is add the hours to a job hit save and have the field(s) I just edited be copied to a table.

The subform is bound to a query that links 2 tables. (The subform is a datasheet). I have a combobox that allows me to filter the subform by person. So by doing this each person can go into the subform, change it to only show their jobs and add their predicted hours and comments beside some jobs. Once they have done this they will hit Save and close which will do just that but will also copy over the records that had data entered into them to an existing table .
For the "Copy only if it has been edited" Part. Could I just add an IF statement, saying IF Hours is empty then don't copy the record?

I know what I want to do but I don't know a lot about access vba to be able to implement this.

Thanks for your time.
Jun 16 '17 #1

✓ answered by NeoPa

Try to think of it a bit differently. Forms are not places where data is stored. They are merely a window on some data source. That can be a query or a table, but whichever it is would be where the data you see on the form is actually stored.

Thus, we don't have a problem of saving the data once entered, as it's already there. Always assuming the forms are designed correctly in the first place of course.

1 1413
NeoPa
32,556 Expert Mod 16PB
Try to think of it a bit differently. Forms are not places where data is stored. They are merely a window on some data source. That can be a query or a table, but whichever it is would be where the data you see on the form is actually stored.

Thus, we don't have a problem of saving the data once entered, as it's already there. Always assuming the forms are designed correctly in the first place of course.
Jun 17 '17 #2

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

Similar topics

1
by: sbh | last post by:
I need to copy data from a table on one Oracle server to another. Scenario: Need to create a stored procedure in server a, database aa that will copy data from server b, database bb, table bbb to...
5
by: Bill | last post by:
I have a table I'd like to copy so I can edit it and play around with the data. How do I create copy of a table in SQl Server? Thanks, Bill
2
by: isa | last post by:
Hello everyone, i want to transfer/copy data from MSDE to SQL Server 2000 and from SQL Server to MSDE, through Stored Procedures , not using a "Replication", kindly tell me how i make a SP for...
1
by: romeodionisio | last post by:
How to copy data in table in a different SQL Server?.... Can anyone help me?.. Thanks....
15
by: BaneMajik | last post by:
I am working with an Access 2003 inventory database. When a piece of equipment goes bad we junk it and delete it from the database. We have been copying the record to an excel form for storage just...
2
by: bcarson86 | last post by:
Hi, I am trying to append a list of part numbers which is generated in a seperate table into a subform table which is on a main form. My main problem with getting it to work is that I need the part...
4
by: Ploepsie | last post by:
Hey, first of all I want to state that I am very new to using Access and therefor the question might be relevantly easy to solve but I have spent hours thus far to find the answer online and in...
0
by: neelsfer | last post by:
I use the following code to copy data from one table (Fis_CaptureT) to another table (Fis_CaptDataT) in real time. It works 100%, except when you make a typo, because that also gets copied then to...
5
by: scrapcode | last post by:
Hi everyone. I'm trying to write a macro to copy data from one Excel sheet to another in the same workbook when a certain criteria is met. My data table is an import from an Access DB. After the...
10
by: mdewell | last post by:
I am using Access 2007. I have a form with fields that I want to copy to a subform. I nave an ADD button that can sopy the data to the subform, so the subform is acting as a clipboard. I can get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.