Solved

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

Posted on 2007-11-20
1
257 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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 …

762 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

7 Experts available now in Live!

Get 1:1 Help Now