473,386 Members | 1,766 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.

Save data from subforms to a table

41
Hello,

I have three subforms (let’s call them SFA, SFB, SFC) on one form (the reason there are subforms is that they are related to different queries).

Each of these subforms contains a data (let’s call them SFA1, SFB2, SFB3).

By clicking a button, I want to save SFA1, SFB2 and SFB3 in one table (this table is no related to the queries bound to SFA, SFB and SFC).

Any idea how to do this?

Thank you very much for your help and your answers. If you need any additional information please, let me know.

G.
May 20 '07 #1
2 1676
JConsulting
603 Expert 512MB
Hello,

I have three subforms (let’s call them SFA, SFB, SFC) on one form (the reason there are subforms is that they are related to different queries).

Each of these subforms contains a data (let’s call them SFA1, SFB2, SFB3).

By clicking a button, I want to save SFA1, SFB2 and SFB3 in one table (this table is no related to the queries bound to SFA, SFB and SFC).

Any idea how to do this?

Thank you very much for your help and your answers. If you need any additional information please, let me know.

G.
Expand|Select|Wrap|Line Numbers
  1. currentdb.execute "Insert into YourTable ( NewSFA1, NewSFB1, NewSFC1 ) values (" & me.SFA.form.SFA1 & ", " & me.SFB.form.SFB1 & ", " & me.SFC.form.SFC1 & ")" 
  2.  
if your values on your forms are text, then you'll need to surround the values with tick marks ' '
J
May 20 '07 #2
Gari
41
Thank you so much, it works amazingly!
May 21 '07 #3

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

Similar topics

2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
12
by: daniel | last post by:
Hi All, I have a form and VB code in Access. The code is like With rs .Edit !Field = 10 .Update End With
1
by: kenduron | last post by:
Hello together! How would you manage the following termin: I got table "A" and table "B" I have to show most of the fields in "A", an one columm in table "B". But table "B" can have...
3
by: kevin.vaughan | last post by:
Hello Everybody and Everymind, I am using Access 2003 on an XP network. The code below activates from a command button on a form. It selects data from a table and then displays it in a cell on...
2
by: collegekid | last post by:
Hi everyone, basically my problem is this: I am using an Access 2000 format. And--I have four subforms in my main form. (Purpose of this is to track projects.) So in my main form I enter the...
4
by: toddw607 | last post by:
I have a form with 6 subforms in Access 2003 with two command buttons at the bottom of the form. When I add data into 2 of the forms and click "Exit with No Save" these two forms retain their data....
18
by: marylipscomb | last post by:
I am new at the whole Access thing, and recently got a new job. I am creating my first database. I did so in Access 2003. My problem is, I have 10 tables, and I created a tab form with 6 tabs on it....
4
by: Whasigga | last post by:
Hi I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the...
5
sickenhoofer
by: sickenhoofer | last post by:
I have a form w several subforms. The ultimate goal would be to click on a location, and have the data in the other subforms change to the data specific to that location. For this form, there are...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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,...

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.