?
Solved

acSaveRecord

Posted on 2003-03-17
4
Medium Priority
?
1,443 Views
Last Modified: 2007-12-19
Forgive me but I'm new to Access and I may ask some simple questions.

The command below apparently saves a record; but to where ?

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

please help
0
Comment
Question by:AdaneEvans
[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
  • 2
4 Comments
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 8153162
It saves it into the table.

If you don't use that command, any changes you make to the record (or if you add a new record) aren't saved until you close the form or move off that record to another record (and in some other circumstances). The line above can also be replaced with either of these two:
DoCmd.RunCommand acCmdSaveRecord
Me.Dirty = False
0
 

Author Comment

by:AdaneEvans
ID: 8153265
What if I'm working with more than one table ?
0
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 150 total points
ID: 8153982
Then it depends which fields you have entered data into, and the query that you are basing the table on.
0
 

Author Comment

by:AdaneEvans
ID: 8154504
Thanks a lot.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Suggested Courses

765 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