Solved

If no files in Dir / MsgBox

Posted on 1998-09-15
1
140 Views
Last Modified: 2010-04-30
Hi,

How do you check if a directory contains any files?
I would like to check for App.path & "\Templates\"
and
if their isn't any files then
popup a msgbox
else
exit sub
end if

0
Comment
Question by:idcanada
1 Comment
 
LVL 14

Accepted Solution

by:
waty earned 20 total points
ID: 1434963
if dir(App.path & "\Templates\") = "" then
   msgbox "No Files found"
end if
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 50
VBA error replacing data 6 37
MS SQL store procedure to calculate and return result 6 49
Help with retrieving partial value from a column using VB.NET 4 41
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now