Solved

Before Update - Save (Yes or No) - on Continuous Form

Posted on 2007-11-20
1
284 Views
Last Modified: 2012-06-27
I have a subform that I place this code in BeforeUpdate:

If MsgBox("Do you want to save? (click 'No' to undo)", vbYesNo, "Save") = vbYes Then
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Else
Me.Undo
End If

This works because the form is a single form.  I also have a continuous subform on the main form that I want to apply the same technique.  But because there could be more than one record entered, I'm not sure how to apply this.  
0
Comment
Question by:Travidia
1 Comment
 
LVL 46

Accepted Solution

by:
tbsgadi earned 500 total points
ID: 20326834
Hi Travidia,

You can't do it on a continuous form ,unless you work on a "Temporary Table" & at the end transfer all the data to the real table.
Or you can ask one row at a time.

Good Luck!

Gary
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

828 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