Solved

MS Access 2003 Form Pushing Data to Table

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

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access report groups with sums 5 28
User Level Security 6 38
Calculation in Access 5 26
Access datasheet - showing a number in scientific notation 4 22
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

773 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