Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136

    Unanswered: Custom message box

    I have created a custom message box but I would like to rename it to something other than "Microsoft Access". I had the code in my hand a couple of days ago and for the life of me cannot find it again.
    Thanks,
    Zenaida


    - If you've never made a mistake, you've never made anything.

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    Huh??? You can't design view the form and change it's caption?
    Back to Access ... ADO is not the way to go for speed ...

  3. #3
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136
    Not a form. A custom message box.
    Thanks,
    Zenaida


    - If you've never made a mistake, you've never made anything.

  4. #4
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136
    I'm not using a form to display my message. It's a Microsoft Access message box I'm trying to change the caption on. My code is working great. I just can't remember what the code is that I need to add to my existing code to change the caption name from Microsoft Access.

    This is my code.
    Code:
    Private Sub DeleteRecord_Click()
    
    If MsgBox("Are you sure you wish to delete this patient?", vbYesNo) = vbNo Then
    Cancel = True
    Else
        
        On Error GoTo Err_DeleteRecord_Click
        DoCmd.SetWarnings False
        DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
        DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
        DoCmd.SetWarnings True
    End If 
    
    Exit_DeleteRecord_Click:
        Exit Sub
    
    Err_DeleteRecord_Click:
       Resume Exit_DeleteRecord_Click
            
    End Sub
    Thanks,
    Zenaida


    - If you've never made a mistake, you've never made anything.

  5. #5
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    To tilte it, there is a 3rd parameter ...

    MsgBox "Test",vbYesNo,"Title Goes Here"
    Back to Access ... ADO is not the way to go for speed ...

  6. #6
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136
    Awesome! Thank you so much. Sorry about the confusion, sometimes it's difficult to get across what I'm asking for. Thanks again!
    Thanks,
    Zenaida


    - If you've never made a mistake, you've never made anything.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •