Solved

If no files in Dir / MsgBox

Posted on 1998-09-15
1
141 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

776 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