Results 1 to 8 of 8
  1. #1
    chimesh is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2013
    Posts
    4

    MS Access 2007 Problem

    I Have a MS Access 2007 Database form with Two Command Button. When i click on first command button, it must be disable and second one must be enable. when i click enabled second button then it must be disable and first one must be enable. My problem is How to keep remember which one is enable and which one is disable for future use. that means when i reopened the database in another time enable and disable status of command buttons must be as when i close the database

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    As long as you don't save the form with the changed settings, it should open next time with the original settings.
    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
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    164
    Why not Enable Both in OnLoad Event, & than Enable\ Disable one as per click
    That will be easy to remember

  4. #4
    chimesh is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2013
    Posts
    4
    Quote Originally Posted by A S MANN View Post
    Why not Enable Both in OnLoad Event, & than Enable\ Disable one as per click
    That will be easy to remember
    Actually I need this for stock reconcile database. When starting reconcile process i need to initialized (delete existing data) and after initialize i need to disable initialize command button until finalize button click. But problem is this reconcile process can take some times more than one day and therefor need to close and reopen database several time.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    What is the logical condition that would determine if ButtonA is enabled or disabled? The whole process shouldn't be dependent on clicking a button--there must be some logic/criteria test to determine the setting.

    eg. Is there data that should be deleted before continuing ?? If yes then Initialized button should be enabled...

  6. #6
    chimesh is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2013
    Posts
    4
    Quote Originally Posted by orange View Post
    What is the logical condition that would determine if ButtonA is enabled or disabled? The whole process shouldn't be dependent on clicking a button--there must be some logic/criteria test to determine the setting.

    eg. Is there data that should be deleted before continuing ?? If yes then Initialized button should be enabled...
    Actually I need this for stock reconcile database. When starting reconcile process i need to initialized (delete existing data) and after initialize i need to disable initialize command button until finalize button click. (That mean after finishing reconcile process) But problem is this reconcile process can take some times more than one day and therefor need to close and reopen database several time.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    So what does this mean in business (not just reconcile process) terms.
    This process takes more than 24 hrs to run?

    In plain English what is a stock reconcile? An example would be helpful.

    Have you see/read this by Allen Brown?

  8. #8
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    164
    Why not Try this
    When the form is loaded you want initializedCommand is enabled and finalize desabled

    OnLoad Event Of Form
    Me.[initializedCommand].Enabled = True
    Me.[finalizeCommand].Enabled = False

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

Similar Threads

  1. Replies: 6
    Last Post: 02-18-2012, 07:20 AM
  2. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  3. TSQL problem on Access 2007 and UP
    By jsucupira in forum Access
    Replies: 3
    Last Post: 12-01-2010, 12:08 PM
  4. Problem with Access 2007
    By HatterasSolutions in forum Access
    Replies: 2
    Last Post: 11-03-2010, 05:00 PM
  5. Problem using the combo box Access 2007
    By PATATE in forum Access
    Replies: 11
    Last Post: 05-23-2009, 06:26 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