Results 1 to 6 of 6
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,095

    Terry Kreft's Shellwait outdated?


    I've been using Terry Kreft's Shellwait for years, but now it doesn't pause the VBA code path as in the past. Is it outdated? Someone posted an update referring to a change regarding 64bit calls, which I tried, but that didn't resolve my issue.

    http://access.mvps.org/access/api/api0004.htm

    My code is, I think, about as simple as can be: (Msgbox statement fires immediately)

    Code:
    Option Compare Database
    Option Explicit
    Dim ShellString As String
    Dim ShellRC As Variant
    
    
    Public Sub ImageLib()
    'Let the user view and/or update TMS companion images as needed.
        ShellString = "c:\Windows\Explorer.exe " & TMSClientPath & TMSClientImages
        ShellWait (ShellString)
        MsgBox "back from shellwait"
    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I tested this using Windows10 64-bit and Access 32-bit. Call opens Explorer - it does not pause. MsgBox opens before Explorer

    Then I tried with opening Excel file and it does pause.
    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
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,095
    Not sure what to conclude. Maybe some quirk relating to a system process versus what amounts to a 3rd party app?

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    Have you tried https://learn.microsoft.com/en-us/an...-compatibility as that states the code works on 32 or 64 bit?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,095
    Yes, I copied the version of code Rick posted at Oct 20, 2020, 5:48 AM, but it too fails to wait until Explorer closes. Below is my code that calls Shellwait.

    Code:
    
    
    Code:
    Option Compare Database
    Option Explicit
    Dim ShellString As String
    Dim ShellRC As Variant
    
    
    Public Sub ImageLib()
    
    
    'Give the user the opportunity to view and/or update the TMS companion image library
    ShellString = "c:\Windows\Explorer.exe " & TMSClientPath & TMSClientImages
    Call ShellWait(ShellString, 1)
    
    
    MsgBox "Debug: We've returned from Explorer"
    'Update the DLM of the image library so we'll know whether any folder change occurred
    dblImDLM = CDbl(FileDateTime(TMSClientPath & Replace(TMSClientImages, "\", "")))
        
    End Sub


  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    Well my Explorer does not come to focus?. I only spotted it after the MSGBOX.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Microsoft Access Outdated Software
    By PSSMargaret in forum Access
    Replies: 9
    Last Post: 05-16-2020, 09:34 PM
  2. Replies: 15
    Last Post: 03-21-2017, 12:19 PM
  3. Replies: 2
    Last Post: 10-21-2015, 08:46 PM
  4. Terry Kreft's aDialogColor - Looking for an "eye dropper"
    By GraeagleBill in forum Programming
    Replies: 0
    Last Post: 02-17-2015, 03:14 PM
  5. Replies: 3
    Last Post: 02-20-2014, 02:00 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