Solved

MS Access 2003 Form Pushing Data to Table

Posted on 2008-06-12
3
190 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

747 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

14 Experts available now in Live!

Get 1:1 Help Now