Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,792

    Still have to grab each file by its full name, including the appropriate extension
    Don't understand that. Thought you said it worked for you when using a wild card. Worked for me.

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    It works just to check if any files exist in folder using Dir() function. But if you want to do something with each file in that folder, such as attach to an email, have to address each by full name. Allen's code shows how to do that dynamically.
    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. #18
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,792
    Agree with that in principle, but OP stated it doesn't matter what the extension is, there will only be 1 file of any 1 name so there is no "each file". If what you or I posted isn't working, then i think it's time for me to back off until the code is posted as we requested.

  4. #19
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    If only one file meets the function parameters then only one file will be grabbed. But to do this dynamically requires looping through the files and test each file name matches the parameters.
    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.

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Macro using wildcard/LIKE
    By ScottySchultz in forum Macros
    Replies: 2
    Last Post: 01-26-2018, 12:54 PM
  2. Wildcard Table
    By genedi in forum Access
    Replies: 4
    Last Post: 11-19-2015, 02:14 PM
  3. Wildcard seacrh
    By andyt_2005 in forum Forms
    Replies: 4
    Last Post: 08-02-2014, 02:30 PM
  4. Using a wildcard if an IIF statement.
    By atlee in forum Programming
    Replies: 6
    Last Post: 02-23-2014, 04:02 PM
  5. Replies: 9
    Last Post: 12-05-2013, 11:48 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