Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929


    It is correct to have

    Option Compare Database
    Option Explicit

    yes

    just wondering why i would get sub r function
    because you have not provided the parameters

    Code:
    dim f as string
    dim s a string
    
    s=InputBox("Paste Number Here ?")
    f=findXLfile( "T:\DMT Ltd\XL Files", s)
    
    if f="" then  MsgBox "Your Search Is NOT On Any XL Files" else MsgBox s & " Is On File Name: " & f
    note if you are looking for numbers - they will not be a string so the sql needs to be modified slightly to cater for both numbers and string - suggest try


    WHERE cstr(D)='" & phrase & "'

  2. #17
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Omit the first line in Excel
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replies: 12
    Last Post: 05-03-2020, 12:16 AM
  2. Replies: 2
    Last Post: 07-03-2017, 09:10 AM
  3. Replies: 8
    Last Post: 11-20-2015, 10:08 AM
  4. Copy files into specific folder
    By Jan22 in forum Access
    Replies: 12
    Last Post: 04-17-2012, 08:27 AM
  5. Replies: 2
    Last Post: 08-31-2010, 08:57 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