Solved

MS Access 2003 Form Pushing Data to Table

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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…
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 …

726 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