Solved

MS Access 2003 Form Pushing Data to Table

Posted on 2008-06-12
3
201 Views
Last Modified: 2013-11-27
I have a form with bound pull down text fields (from several different tables) that I want to push into one record into one table in the database.  Most are text boxes and some are automatic calendar boxes.  

Example:  Form1 with txtName, txtaddress, txtDate, txtCity (all drop downs come from separate tables)

Want to push all of these fields into one record into tblTable that contains all of the same fields shown on Form1 with Add button on form.
0
Comment
Question by:deer777
3 Comments
 
LVL 19

Expert Comment

by:frankytee
ID: 21774836
is your form unbound or is it bound to the table where you want to insert the record?
0
 

Author Comment

by:deer777
ID: 21774921
It is unbound
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 21775093
you will need a save button

private sub cmdSave_click()

dim rs as dao.recordset
set rs=currentdb.openrecordset("select * from tblTable where 1=0")

with rs
        .addnew
        !field1=me.field1
        !field2=me.field2
        'add the other fields here

         .update
end with
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now