Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32
  1. #31
    Sgt_Utz is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    25
    For official use only. Required for official government documents.



    I completely changed the code which is quick, however it only gives me the first matching record or tells me if it's null. I'm not pulling the multiple records if they exists

    [code]Public Function FileSelect(Last As Variant, First As Variant, Search As Variant)

    strTest = "(FOUO) " & Last & ", " & First & " - " & Search
    FolderSpec = "\\server\share\" & Last & ", " & First & "\" & strTest & "*.*"

    If Len(Dir(FolderSpec)) > 0 Then
    FileSelect = Dir(FolderSpec)
    End If

    End Function[\code]

    Quote Originally Posted by June7 View Post
    Post your query SQL statement.

    What is (FOUO)?

  2. #32
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    So is that doing what you want? If not, what do you want?

    Where are you using the function? In a query? Post the query.
    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 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. DateDiff function
    By joym in forum Forms
    Replies: 10
    Last Post: 02-15-2017, 03:29 AM
  2. datediff function in query
    By LeesKeys in forum Queries
    Replies: 3
    Last Post: 06-23-2016, 08:54 AM
  3. DateDiff function
    By stavros in forum Access
    Replies: 18
    Last Post: 06-01-2013, 07:16 PM
  4. DateDiff Function
    By Nixx1401 in forum Access
    Replies: 4
    Last Post: 04-14-2011, 09:27 AM
  5. DateDiff function
    By Scott R in forum Reports
    Replies: 5
    Last Post: 12-03-2008, 07:32 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