Connecting Tech Pros Worldwide Help | Site Map

display messages

  #1  
Old November 13th, 2005, 12:58 AM
rudy
Guest
 
Posts: n/a
I am using a form for data entry that I want to be able to change the
message that appears when I click on a button to process the entry.
The current message that appears is 'you can't go to the specified
record'. Can this be edited or replaced with one that states 'record
is already in database' or something more meaningful.

Thanks,
Rudy
  #2  
Old November 13th, 2005, 12:58 AM
fredg
Guest
 
Posts: n/a

re: display messages


On 18 Jun 2004 10:03:31 -0700, rudy wrote:
[color=blue]
> I am using a form for data entry that I want to be able to change the
> message that appears when I click on a button to process the entry.
> The current message that appears is 'you can't go to the specified
> record'. Can this be edited or replaced with one that states 'record
> is already in database' or something more meaningful.
>
> Thanks,
> Rudy[/color]

Code the Form's Error Event:
MsgBox "The error# is " & DataErr
Resume acDataErrContinue

open the form and intentionally make the error.

The message box will appear with the error number.

Then re-code the Error event to:
If DataErr = XXXX Then
MsgBox "Your new message here."
Resume acDataErrContinue
Else
MsgBox "Error #: " & DataErr
Resume acDataErrDisplay
End If
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
display messages in python shell koutoo@hotmail.com answers 3 November 20th, 2007 01:15 PM
Need to pass in an output location on aspx page to a VB DLL to display text hasina answers 0 July 31st, 2007 07:28 PM
how to display messages on gridview depends upon checkbox status manjith answers 1 May 30th, 2007 04:32 PM
Messages displayed to user. UJ answers 1 February 23rd, 2006 04:45 PM