[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/15/2009 at 05:39AM PDT, ID: 24732625
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Closing a form without saving data.

Asked by poucedeleon in Access Forms, Microsoft Access Database, Access Coding/Macros

Tags: Closing form, Exit, Do not Save, Focus, Dirty

I am trying to create a command that will allow me to close out of a form without saving the data. There are multi steps to get into the forms and at two points you should be able to exit without saving but neither are working the way I want them to.
Data is entered into a field that has an item not in list event. As you type if a matching record is not found, you press enter and the first MsgBox opens. (Pic 1)
The first MsgBox ask if you want to add the New Data, (Pic 2) but when you click no instead of returning to a empty field I get a message saying The text you entered isnt an item in the list, (Pic 3) I then have to press the esc key three times (First press closes the drop-down list, second press removes entered data from the field, third press makes field undirty.
Add New Inmate form has a Cancel button in case you entered the wrong data or just change your mind. When you click the button (Pic 6) the form closes but the data is not deleted from the record. I think the problem with this button is the data has already been saved (Pic 5) base on the fact that the Inmate involved form is no longer Dirty. I am not sure if I should have code to delete the record or if I can still use an undo command.
"This is a Bound Form
"Record Source = tblInmates
"On the Add New Inmate form the InmateID field is a Auto Number Field  
I have post the code I am currently using. It does not work!!!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Private Sub cmdCloseNoSave_Click()
 
            If IsNull(Me!InmateID) = False Then
            If Me.Dirty = True Then
        Me.Undo
    End If
End If
 
DoCmd.Close
End Sub
Attachments:
 
Entering New Data
Entering New Data
 
 
First MsgBox
First MsgBox
 
 
Item not in list
Item not in list
 
 
Backing out using esc key
Backing out using esc key
 
 
Add New Inmate Form
Add New Inmate Form
 
 
Record not deleted from Inmate involved form/record
Record not deleted from Inmate involved form/record
 
[+][-]09/15/09 07:24 AM, ID: 25335209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 01:08 PM, ID: 25338813

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 04:09 AM, ID: 25344147

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 10:04 AM, ID: 25347751

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/16/09 06:09 PM, ID: 25352002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 06:10 PM, ID: 25352008

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/09 05:21 AM, ID: 25382128

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/09 03:30 AM, ID: 25391205

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/09 05:33 PM, ID: 25399061

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/22/09 05:34 PM, ID: 25399063

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/24/09 12:04 PM, ID: 25416612

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/25/09 01:45 AM, ID: 25421081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/26/09 11:34 AM, ID: 25430925

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/26/09 04:39 PM, ID: 25432066

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/27/09 08:36 AM, ID: 25434228

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/27/09 06:09 PM, ID: 25436239

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/27/09 08:17 PM, ID: 25436579

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/28/09 09:05 AM, ID: 25440495

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/28/09 09:41 AM, ID: 25440840

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/28/09 03:05 PM, ID: 25443833

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/09 07:19 AM, ID: 25449307

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, Microsoft Access Database, Access Coding/Macros
Tags: Closing form, Exit, Do not Save, Focus, Dirty
Sign Up Now!
Solution Provided By: thenelson
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10/02/09 02:10 PM, ID: 25482254

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625