Solved

Creating a New Recording a DAO Database from a form

Posted on 2014-01-28
2
356 Views
Last Modified: 2014-01-28
I want to add a new record to a DAO recordset by entering info in a form. The form is based on the DAO recordset. Should I create the record first (using .AddNew and .Update), then open the form? Or open the form, allow the operator to enter the data, then use .AddNew and .Update?  Kind of like the old question "Which comes first: the chicken or the egg?".
0
Comment
Question by:SowleMan
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 100 total points
ID: 39815422
Why are you not simply using a bound form?

When you bind a form to your table, the updates/additions you create are automatically saved.
0
 

Author Closing Comment

by:SowleMan
ID: 39815458
I don't use ACCESS/VBA a lot. I failed to think of a form's ability to add a new record and save it. A "new guy" mistake. Thanks. I used your suggestion and (obviously), it was successful.  Thanks.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

914 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

17 Experts available now in Live!

Get 1:1 Help Now