Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating a New Recording a DAO Database from a form

Posted on 2014-01-28
2
Medium Priority
?
392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye earned 400 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

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 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