Does anybody know how to do that? I need to check the documents folder in the start menu to see if it is empty or not. Thanks...
Hello brianod, Try this: Private Sub Form_Load() If Len(Dir("c:\test\*.*")) = 0 Then MsgBox "empty" Else MsgBox "not empty" End If End Sub Nice regards.
Hi.. Why make it "hard" =) use this instead. Code: Private Sub Form_Load() If Dir("c:\doc\*.*") = "" Then msgBox "Empty" End Sub
Private Sub Form_Load() If Dir("c:\doc\*.*") = "" Then msgBox "Empty" End Sub
Forum Rules