Thanks, its showing compile syntax error.To add a message, then do something like this
Code:Private Sub CmdLogOut_Click If MsgBox("This will log you out and close the application" & vbCrLf & _ "Are you SURE you want to do this?, vbQuestion+vbYesNo+vbDefaultButton2,"Logout & Quit?")= vbNo Then Exit Sub Call CloseSession Call LogMeOff(lngLoginID) DoEvents Application.Quit End Sub
Sorry. Missing " after this?
Code:Private Sub CmdLogOut_Click If MsgBox("This will log you out and close the application" & vbCrLf & _ "Are you SURE you want to do this?", vbQuestion+vbYesNo+vbDefaultButton2,"Logout & Quit?")= vbNo Then Exit Sub Call CloseSession Call LogMeOff(lngLoginID) DoEvents Application.Quit End Sub
Hi
Its working fantastic now.
Thanks for efforts.