Results 1 to 7 of 7

MS Access Code was working but now gives error message. Please kindly help. Thanks a lot

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-13-2023
    Location
    California, USA
    MS-Off Ver
    2016
    Posts
    124

    MS Access Code was working but now gives error message. Please kindly help. Thanks a lot

    Hi Supers
    Attached are the codes with error. These codes were fine did not give me any error, now it does.
    Thanks a lot
    -------
    Option Compare Database
    
    Private Sub ExitBtn_Click()
    
        If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, "Quit Program") = vbNo Then
            Cancel = True
        Else
        DoCmd.Quit
        
        End If
    
    End Sub
    Private Sub Form_Load()
       username = Environ("COMPUTERNAME") & "." & Environ("USERNAME")
       DoCmd.SetWarnings False
       DoCmd.OpenQuery "LogOnQ"
       DoCmd.SetWarnings True
    End Sub
    Private Sub Form_Open(Cancel As Integer)
    
          DoCmd.Maximize
    
    End Sub
    Private Sub Form_Unload(Cancel As Integer)
       DoCmd.SetWarnings False
       DoCmd.OpenQuery "LogOffQ"
       DoCmd.SetWarnings True
    End Sub
    Thanks
    Last edited by alansidman; 04-13-2023 at 04:47 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Access Error message trying to access 'Performance' db
    By bbqqsmokeman in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2017, 08:11 PM
  2. [SOLVED] Code with message for delete row is not working and other without message is working why
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2017, 01:54 PM
  3. Double Handling within working code Write to access and fire access macro
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2015, 12:19 PM
  4. [SOLVED] No error message but Code not working
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 01:12 PM
  5. VBA code created in Excel 2003, not working in Excel 2010, Getting error message 400.
    By rajeshapril14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2012, 05:19 AM
  6. Exporting to Access-Error Message
    By markmerid in forum Excel General
    Replies: 0
    Last Post: 10-11-2006, 11:26 AM
  7. [SOLVED] Exporting to access but no error message
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1