[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.

Question
[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.4

Create CUSTOM ERROR MESSAGE containing "OK"  BUTTON that causes the private subroutine to abort after <br><br>user clicks on "OK"

Asked by demmet22 in Microsoft Access Database

Tags: error, message, access, custom

Hello everyone,

Here' s the problem that I hope someone can help me with.

I Have a command button on a  SUBFORM that appends the selected  record to a particular table and then deletes the record from the source table. Whenever the button is used the following series of Access's default messages come up giving you the options to continue "YES" or "NO":


1.     You are about to run an append query…. (Replace with: "Do you want to remove…?")
2.     You are about to append 1 row(s)…        (Replace with: "You are about to remove…")
3.     You are about to delete 1 record(s)...       (Replace with: "Are you sure you want to remove…? ")

I would like to change these messages as indicated above.  But keep the "YES - NO" buttons in the message box.
-------------
ALSO
-------------

There is also a lenthy default error messages that arises relating to the Append Command when the user forgets to fill in the date field in the SUB FORM  because that field  is a required field in the table that is being appended.

I would like to change this error message to :  "You must enter a date…".
AND cause the ENTIRE PRIVATE SUB to abort after the user clicks OK.
I don't want the user to even get the option to delete the record if it can't first be appended!!!

Can an expert PLEASE show me how to include this into the code behind my command button?
The code behind my command button is as follows.

Private Sub cmdRemove_Click()
On Error GoTo Err_cmdRemove_Click

    Dim stDocName As String

    stDocName = "qryAppend"
    DoCmd.OpenQuery stDocName, acNormal, acEdit


    DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

Exit_cmdRemove_Click:
    Exit Sub

Err_cmdRemove_Click:
    MsgBox Err.Description
    Resume Exit_cmdRemove_Click
   
End Sub


Thank you for your help.
[+][-]01/23/02 10:57 AM, ID: 6751786Expert Comment

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.

 
[+][-]01/23/02 11:24 AM, ID: 6751831Author Comment

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.

 
[+][-]01/23/02 12:12 PM, ID: 6751912Accepted Solution

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

Zone: Microsoft Access Database
Tags: error, message, access, custom
Sign Up Now!
Solution Provided By: Jovix
Participating Experts: 5
Solution Grade: A
 
[+][-]01/24/02 02:08 AM, ID: 6753191Expert Comment

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.

 
[+][-]01/24/02 05:25 AM, ID: 6753541Expert Comment

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.

 
[+][-]01/24/02 08:03 AM, ID: 6753920Expert Comment

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-89