• ** There has been a recent site upgrade. Please clear your browser cache to avoid issues. **
  • New forum feature - post voting and best solution

    Check out this thread for the details: https://www.access-programmers.co.uk/forums/threads/new-forum-feature-post-voting-and-best-answer.314134/

    This new feature looks great to me! :)

  • We now have 3 forum themes

    Go for the default (light) theme, Shades of Grey or Shades of Blue. I just added the Blue one.

    The thread about it is here: https://www.access-programmers.co.uk/forums/threads/new-forum-theme-shades-of-blue.314136/

Message box problem - code (1 Viewer)

Walter

New member
Local time
Today, 11:09
Joined
Jan 11, 2000
Messages
9
Hi I have a message box that pops up on a event. the thing is i cant get it to dislpy right. i want it to display the exclamation box, with only the cancel option or if thats not possible the cacel/retry option
this is what i have for codeL:

msgbox("Prompt,vbexclamation,"Title",
now I've tried everything that I can think of but cant finish off the code correctly if you could help it would be greatly appreciated thanks,
Walter
 

R. Hicks

AWF VIP
Local time
Today, 06:09
Joined
Dec 23, 1999
Messages
619
You coding needs a liitle work. In the event you are working with add this code:

Dim strMsg As String
Dim strTitle As String
Dim intResponse as Integer
strMsg = "Your message here"
strTitle = "Your message box caption here"
intResponse = MsgBox (strMsg, vbExclamation + vbRetryCancel, strTitle)
If intResponse = vbCancel Then
"Code to do something if Cancel selected"
Else 'retry was selected
"Code to do something if Retry selected"
End If

HTH
RDH

[This message has been edited by R. Hicks (edited 01-28-2000).]
 

Users who are viewing this thread

Top Bottom