Results 1 to 4 of 4
  1. #1
    timpepu is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    13

    Running Cmd problem

    Hi !
    I try to run this and it works ok when I run it by step but otherway comes error and I think that's the reason is time, cmd process name txt to another name and it is not yet ready ! How should it do ?



    Do
    Do Until txtfile = ""
    Call Shell("\\flevy\data\thy\virhetiedostot\tee txttiedosto.cmd", 1)


    DoCmd.TransferText acImportFixed, "Viheelliset", "Virheelliset merkinnät", "\\data\thy\virhetiedostot\f338bxxx.txt", False, ""

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    timpepu is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    13

    Running cmd problem


    Thank you for the answer !

    I'm not an expert , how should I put my code for example to case api004

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I've never needed that myself. Based on the instructions, copy all the code there into a standard module, then use ShellWait instead of Shell.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query with a running sum
    By is49460 in forum Queries
    Replies: 3
    Last Post: 09-07-2013, 11:11 PM
  2. Running parameter queries from VBA
    By John Southern in forum Programming
    Replies: 6
    Last Post: 03-25-2010, 10:24 AM
  3. Running Sum Problem in Query and Chart
    By sandyg in forum Access
    Replies: 0
    Last Post: 12-01-2009, 01:02 PM
  4. Replies: 2
    Last Post: 09-30-2009, 09:40 AM
  5. Running Count Query
    By monkey2003 in forum Queries
    Replies: 0
    Last Post: 09-21-2009, 12:24 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