Results 1 to 3 of 3
  1. #1
    gregu710 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Frederick, CO (near Longmont and Boulder)
    Posts
    40

    Form Button loses functionality after Save

    I am working on modifications to a database, and before modifying the database, I save it under a new name so that if my modifications go horribly wrong, I have a functional database to go back to. One of my forms has a button which opens a new form for data entry, and then closes itself. It works perfectly in each version I have done up till now. I simply took my existing database, clicked File > Save As, and accepted the modified file name that Access gave me. I went in, opened the new working file which I had just created, and that form button no longer has any functionality. If I go back to the old copy it works just fine. The button functionality is via the following VBA code:



    Private Sub Command5_Click()
    DoCmd.OpenForm "MOTOR_STARTUP"
    DoCmd.Close acForm, "Database_Startup"


    End Sub

    A little update, if I change these commands to a set of Macros using Embedded Macro, I don't have this problem....



    Nothing terribly sophisticated so not sure what is going on....
    Last edited by gregu710; 01-16-2012 at 04:52 PM. Reason: clarification of problem

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    So you tried saving again and same thing happens?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    gregu710 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Frederick, CO (near Longmont and Boulder)
    Posts
    40
    Yep. If I open it on another computer out on the production floor, the problem goes away, everything is fully functional. And now, when I try to recreate the problem it doesn't seem to be happening. The only thing I can think is that it was something in one of the local settings. I was playing around with the TrustCenter settings, but other than that, have only been working on VBA script for other stuff unrelated to the buttons which lost functionality.

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

Similar Threads

  1. Save button
    By tia in forum Forms
    Replies: 19
    Last Post: 01-10-2012, 06:15 AM
  2. Replies: 1
    Last Post: 07-18-2011, 03:08 AM
  3. Replies: 3
    Last Post: 07-05-2011, 01:54 PM
  4. Access Form- Save/Close Button error
    By Ashe in forum Forms
    Replies: 3
    Last Post: 02-10-2011, 01:01 PM
  5. VB coding for saving when click on save button in form
    By cwwaicw311 in forum Programming
    Replies: 1
    Last Post: 02-04-2010, 11:11 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