Results 1 to 4 of 4
  1. #1
    e.badin is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    16

    Access waits for Excell

    Hi guys,
    I have an mdb report that opens an XLS file. The XLS has an query table that updates on opening with data from the mdb file, table X.
    Now I want to change the data in table X and everytime, open the xls, print the contents and close. I have made the code for the XLS file so that on opening it prints and closes. My problem is that I want Access to wait until the file is closed and then generate new data in table X and so on...



    For opening the excel I used
    Code:
    Call Shell(stAppName, vbMinimizedNoFocus)
    If you're asking why the hell I'm doing this, well , it's some sort of pagebreaking on a report. Making it separate worksheets won't work as I may have to many sheets for excel to handle.

    I'm opened to suggestions...

  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

  3. #3
    e.badin is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    16
    Quote Originally Posted by RuralGuy View Post

    Thanks, you don't know how much I searched for something like that. So I use the new shellwait sub instead of the default shell one. Just making sure .

  4. #4
    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
    Correct-a-mundo! Have fun.

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

Similar Threads

  1. opening an excell file from out of access
    By FSCHAMP in forum Access
    Replies: 1
    Last Post: 01-05-2011, 10:17 AM
  2. import an excell spreadsheet in an access database
    By lmichaud in forum Import/Export Data
    Replies: 0
    Last Post: 11-03-2006, 08:29 AM

Tags for this Thread

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