Results 1 to 4 of 4
  1. #1
    buckeye4 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    1

    Command button doesn't work when DB is opened


    I have a command button in a form that changes a "Status" field from "Pending" to "Inspected".
    For some reason, every single time I close the database and re-open to operate it, the command button no longer works. So I have to re-create it and then it'll work for the duration I have the database open for that particular session.
    How can I get it to work indefinitely so I don't have to re-create the button and embedded macro every time I open a new DB session?

    Embedded macro:
    Condition = [Status] In("Pending")
    Action = Setvalue
    Action Aruguments = [Status], "Inspected"

    Action = Requery

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about *importing* everything to a new, fresh db and see if the problem follows: http://www.btabdevelopment.com/ts/impnew

  3. #3
    SteveH2508 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    117
    Make sure that your database is in a Trusted Location.

  4. #4
    thhui is offline Competent Performer
    Windows XP Access 2002
    Join Date
    Feb 2009
    Posts
    235
    Could you upload your testing sample database in mdb format
    so that we could find out what the problem is ?

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

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  2. Command Button
    By nashr1928 in forum Forms
    Replies: 2
    Last Post: 07-05-2010, 08:02 PM
  3. Command Button
    By nashr1928 in forum Forms
    Replies: 1
    Last Post: 07-05-2010, 07:05 PM
  4. Command Button
    By lannoe in forum Forms
    Replies: 1
    Last Post: 07-01-2010, 01:48 PM
  5. make Add Record button work
    By janjan_376 in forum Forms
    Replies: 3
    Last Post: 06-05-2009, 04:22 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