Results 1 to 2 of 2
  1. #1
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126

    Question on click events not working.

    Attachment 46335 I have a membership app. Currently, there are two buttons that used to work: Quit &Members.



    THe Quit btn as this click event:
    Code:
    Private Sub btn_Quit_Click()
    DoCmd.Save
    DoCmd.Beep
    MsgBox "File saved"
    DoCmd.Quit
    End Sub
    I have recreated the form and marked the sub for debug to no avail. Also the obload event will not fire. I suspect I changed something in FILE/OPTIONS??? Your thoughts?....thanks...

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    You know that events don't run because you put a break on the beginning of the code then opened the form (or switched to form view from design view) and code did not halt at your break point? Then check Trusted Locations settings for the folder containing the db.

    It seems the advice about having nothing to save (in that code) wasn't followed?
    https://www.accessforums.net/showthr...ght=DoCmd.Save
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-10-2019, 02:25 PM
  2. Replies: 6
    Last Post: 05-08-2019, 03:25 PM
  3. vba click events
    By bilalo in forum Programming
    Replies: 8
    Last Post: 01-31-2019, 02:35 PM
  4. Replies: 4
    Last Post: 03-30-2018, 02:31 PM
  5. Replies: 3
    Last Post: 05-23-2013, 05:30 PM

Tags for this Thread

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