Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access: check file path in sql database

Posted on 2013-11-19
2
481 Views
Last Modified: 2013-11-19
Does anybody know an easy way to verify a file path?

I have a Db with Part Number and Path to image. I want to verify the path to image is correct.

E.g Part1 P:\Product Images\2013\image.bmp
0
Comment
Question by:HKFuey
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39659404
you can use the dir() function

if dir("P:\Product Images\2013\image.bmp")<> "" then
    msgbox "File Exists"
    else
    msgbox "File Not Found"
end if
0
 

Author Closing Comment

by:HKFuey
ID: 39659829
Thanks for the help ended up using FSO
    Dim fso As New FileSystemObject
    If FileOrDirExists(OBText) Then
    Rst.Edit
    Rst!OK = "Y"
    Rst.Update
    End If
    Set fso = Nothing

Function is here:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=559
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question