Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    cap.zadi is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Quote Originally Posted by ridders52 View Post
    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
    Thanks, its showing compile syntax error.

  2. #32
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,991
    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
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #33
    cap.zadi is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hi

    Its working fantastic now.

    Thanks for efforts.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 10-23-2016, 07:35 AM
  2. Replies: 3
    Last Post: 12-14-2011, 01:24 PM
  3. Replies: 6
    Last Post: 12-12-2011, 01:28 PM
  4. Replies: 1
    Last Post: 12-11-2011, 11:48 AM
  5. Replies: 3
    Last Post: 09-22-2011, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums