Results 1 to 7 of 7
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919

    Command() no longer supported in A2010

    I need to covert an A2003 mdb to A2010. I need replacement functionality for the Command() function. Anyone know what that might be?
    Thanks,


    Bill Stanton

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I have never used the Command() function in Access myself, but Google searches returned this link regarding Command() and Access 2010. Perhaps it will solve your answer. If not, I am sure that people would need to see how you are using to try to determine what the issue may be.
    http://social.msdn.microsoft.com/For...-33df732b1689/

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    My use is really simple. I have an Autoexec macro that has a single "Runcode" invoking a general module that contains a Case statement using Command(). The Case structure simple gates the applications behavior.

    When I attempt to compile my 2003 mdb, I'm greeted with the error that the Command() function is no longer supported. Maybe there's something in reference library, but I couldn't any.

    Bill

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Did you take a look at the link I provided, or the one at the bottom of that link?
    http://social.msdn.microsoft.com/For...c-994d1a8b5f19

    It might be helpful to others who are familiar with the Command() function if you can post the actual section of code that uses it.

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Here's the code: (This function receives control via the "Runcode" -> TMSGate() coded in the AutoExec macro.)

    Public Function TMSGate()
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*==
    ' This routine simply acts as the opening gate to TMS, in that it determines if we're running
    ' solely for the purpose of database backup or a normal startup of TMS.
    '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*==

    Select Case Command()

    Case "DBDist" 'Invoking syntax include the /cmd "DBDist" parameter?
    DBDistribution 'Yes, Just attend to DB distribution

    Case "SermonMgr" 'Sermon Manager running as a scheduled task
    Call SermonMgrGate

    Case Else
    ScrRes 'No, get screen resolution and start TMS

    End Select

    End Function

  6. #6
    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

  7. #7
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Here is an example of how the command() functionality is required for one of the applications started tasks: (On a A2007 system)

    "C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.EXE" "C:\GCC\TMS-V9.2.mde" /CMD SermonMgr

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

Similar Threads

  1. SQL Distinct not supported on Web Database
    By ehabo in forum Queries
    Replies: 9
    Last Post: 01-23-2014, 10:32 AM
  2. A2010 compacting every time the DB is closed.
    By irish634 in forum Access
    Replies: 5
    Last Post: 03-02-2012, 04:28 PM
  3. JOIN expression not supported
    By seageath in forum Access
    Replies: 2
    Last Post: 12-05-2011, 08:41 PM
  4. Join Expression Not Supported
    By ubsman in forum Queries
    Replies: 3
    Last Post: 04-30-2009, 08:36 PM
  5. Tried and true programs no longer run
    By Seckert in forum Access
    Replies: 0
    Last Post: 04-07-2009, 01:45 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