Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bg3075

    How do I use FileExists?

    Got it... was actually much simpler than I thought it would be. I was able to eliminate the query, and hyperlink table, all together.Private Sub cmdOK_Click() 'Opens Groundwater Trend Charts, first checking if PDF exists Dim strDocument As String Dim txtWellID As String Dim FSO Set FSO =...
  2. bg3075

    How do I use FileExists?

    Thanks, it looks like it is working now. I added Dim FSO Set FSO = CreateObject("Scripting.FileSystemObject")to the declaration section of code, but also had to add a "/" to the end of the file path, being that I did not add a FindFolder or Dir method. But, instead of using a table to open...
  3. bg3075

    How do I use FileExists?

    Thanks MintJulep. It is giving an error on the lineSet FSO = New FileSystemOBject stating "Compile Error: User Defined Type not defined". This is part of code I copied / pasted from the thread I referenced in my first post. Do I need to declare FSO as something possibly?
  4. bg3075

    How do I use FileExists?

    thread766-141175 Working off of the thread above, I am trying to have VBA code 1. Open a Select Query, on a Hyperlink field, based on a list box selection ("txtWellID") 2. Check if a PDF file exists for the item in "txtWellID" then a. Open the hyperlink, or else b. Display a MsgBox and...

Part and Inventory Search