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

transfer data from a form to table

I want to ask if I can transfer data (rows) from a form to a table other than the one bounded with the form?

I need to transfer specific rows only, can I??
for neccesary!
Mar 13 '15 #1
5 1831
Seth Schrock
2,965 Expert 2GB
Yes it is possible, but if you have a properly normalized database, then it is very rare that you would need to.

How do you pick which rows that you want to transfer?
Mar 13 '15 #2
sorry I didn't get you,
suppose we have a form for costumers details and every month we have to choose some of them and put their details in separate table, how we gonna do this
I am thinking if we can put an button in (detail) part in the (design view) and give a command whenever you click on it will transfer this row (details) to a specific table .
Mar 14 '15 #3
Seth Schrock
2,965 Expert 2GB
I would use the Insert Into Select query to do this. The basic syntax is
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO table2
  2. (column_name(s))
  3. SELECT column_name(s)
  4. FROM table1
  5. WHERE ID_column = Current_ID
The On_Click event of your button would build this string and use the value in the ID control for the current record to replace the Current_ID in the syntax above.
Mar 14 '15 #4
can you explain more please,,
Mar 14 '15 #5
Seth Schrock
2,965 Expert 2GB
Without more information I can't be too specific, but here is about what you need.
Expand|Select|Wrap|Line Numbers
  1. Dim strInsert As String
  2. Dim db As DAO.Database
  3.  
  4. strInsert = "INSERT INTO table2 " & _
  5.             "(column_name(s)) " & _
  6.             "SELECT column_name(s) " & _
  7.             "FROM table1 " & _
  8.             "WHERE ID_column = " & Me.ControlName
  9.  
  10. Set db = CurrentDb
  11.  
  12. db.Execute strInsert, dbFailOnError
  13.  
  14. Set db = Nothing
Table2 is the table that you are inserting into . Table1 is the table that the information is coming from. Me.ControlNumber is the control whose Control Source is the ID field for your table.
Mar 15 '15 #6

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

Similar topics

12
by: Pete..... | last post by:
Hi all. I have made a webpage where there is a webform where people can fill in their personel information: The code is below: I want to transfer the data to a postgreSQL database ( I have...
1
by: bwalke | last post by:
Hi all, I am fairly new to using triggers and was seeking some help from those that have experience with them. I am looking to transfer data from a SQL 2000 database to a Visual FoxPro database...
4
by: Fernando Lopes | last post by:
Hi there. There's a way to transfer data between pages but: - Not using Session - Not use Querystring Tks. Fernando Lopes
6
by: shivavrata | last post by:
Hi All, I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol...
1
by: go2bee | last post by:
Tamplat is it HN: 49xxxxx Name : Cxxxx xxxxx PID : 3xxxxxxxxxxxx Address : 1xxx x xxxx , Tambonxxxx , Ampurxxxxxxx ,Provincexxxxx Postcode : 1xxxx At xxx is Data form Table Name
9
by: sandykumar | last post by:
hiii i want to transfer data from one site to another site. there is a form in site www.abc.com and this form is similer to form of site www.xyz.com. data filled in form of site...
5
by: billa856 | last post by:
Hi I am totaly new to MS Access. I have one worksheet in excel in which I have data of company's inventory. I want to know can I transfer data from a form made in MS Access to the Excel worksheet?...
1
by: indirareddy | last post by:
Hai this is indira reddy ....... this is big proublem how to transfer Data one registration form to at time 40 other registration forms......are u not understanding.....i explain once...
0
by: grant | last post by:
I have a transfer data task that gets some data from a table and outputs it to a pipe delimitd text file. How can I configure a transfer data task so it outputs the field names from the table in...
2
by: sam12 | last post by:
I have one variable strsql declared as string this is just like strsql= "select* from blabla....."&"bllalal" I have another table tbl_temp which has all the fileds selected in strsql query I want...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...
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.