Results 1 to 3 of 3
  1. #1
    JRodko is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    127

    Form BeforeUpdate no longer worked once Saved as ACCDE.

    Hello,

    I have several forms which use codes similar to this in the Before Update field.

    "Private Sub Form_BeforeUpdate(Cancel As Integer)GEOT_To_m.DefaultValue = [GEOT_To_m] + ([GEOT_To_m] - [GEOT_From_m])
    GEOT_From_m.DefaultValue = GEOT_To_m


    End Sub"

    I have a split database with the backend on a local server. Everything works fine when the front end is saved as .ACCDB. However, when I save as .ACCDE this seems to stop working on all forms. I cannot figure out why that might be. It is important that this run on several computers without needing an Access License. I have installed the Office 365 Runtime and still no luck.

    Thanks

  2. #2
    JRodko is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    127
    I just marked this as solved. I swear, posting to this forum just makes the solution appear to me half the time. Within 30 seconds of pressing submit a new thread I had the idea. Must be forum osmosis.

    If anyone reads this, the issue seemed to be that I needed to save some code in VBA for different forms, then recompile the database. Worked nicely after that.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    ALWAYS compile before trying to create an accde
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 9
    Last Post: 11-14-2018, 01:32 PM
  2. BeforeUpdate in a form
    By tcheck in forum Access
    Replies: 4
    Last Post: 07-28-2016, 03:09 PM
  3. Replies: 9
    Last Post: 07-17-2015, 10:20 AM
  4. Using the Form.BeforeUpdate property
    By Access_Novice in forum Programming
    Replies: 6
    Last Post: 01-01-2014, 08:45 PM
  5. BeforeUpdate in a Form in Datasheet view
    By fitshase in forum Forms
    Replies: 7
    Last Post: 07-29-2011, 08:53 AM

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