Change message box title change

meenctg

Learn24bd
Local time
Today, 11:47
Joined
May 8, 2012
Messages
133
I create a VB program for my access with If then Else
condition. When the condition get false then it
gives a message "WRONG PASSWORD". Here my question
It shows on title bar Microsoft Access. I wanna
set a title whatever i like.

attachment.php


Is it possible?
 

Attachments

  • access_msgboxTitle.png
    access_msgboxTitle.png
    5.4 KB · Views: 6,753
Check out the arguments available for the message box.
 
Check this link for your edification :D

It's amazing what you can find with Google ;)
 
Check out the arguments available for the message box.

This is my program. How will i solve this? Actually i am not expert in VB

Code:
Private Sub Command31_Click()
If Me.valita = "1234" Then
        DoCmd.OpenForm "Main"
        DoCmd.Close acForm, "Log"
    Else
       [B]MsgBox "::. WRONG PASSWORD .::"[/B]
   End If
 End Sub
 
If you checked the link I provided you would have figured out that what you are after is;
Code:
MsgBox "::. WRONG PASSWORD .::", , "Your Title Here"
 
This is my program. How will i solve this? Actually i am not expert in VB

Code:
Private Sub Command31_Click()
If Me.valita = "1234" Then
        DoCmd.OpenForm "Main"
        DoCmd.Close acForm, "Log"
    Else
       [B]MsgBox "::. WRONG PASSWORD .::"[/B]
   End If
 End Sub

I wouldn't expect you to be an expert. I do expect you to look in VBA help at the arguments available for MsgBox.
 
Or not I guess.
 
Also you might have noticed that as soon as you type "MsgBox" and then a space a small message box appears that tells you the various arguments that are relevant to that command, it will also provide a list of options where appropriate. This should also help you figure out how to construct the Message box.
 

Users who are viewing this thread

Back
Top Bottom