|
-
May 2nd, 2002, 08:52 AM
#1
(RESOLVED) Dir list and File list
Is there a tool I can use in Access to find directories and files on a machine or in the connected network.
It should be something like you have in VB.
I must develop it in Access for the moment.
Later it will be transfered to VB6 , so I could reuse things i make in access.
Any help app.
-
May 2nd, 2002, 09:10 AM
#2
Bouncy Member
you can use the DriveListBox, DirListBox and FileListBox controls for this.
you can also use the Dir() function to search for files
-
May 2nd, 2002, 09:13 AM
#3
VB Code:
Private Sub Form_Load()
Drive1.Drive = "C:"
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
-
May 2nd, 2002, 09:24 AM
#4
Fanatic Member
VB Code:
Private Sub Command77_Click()
If Dir("C:\My Documents\") <> "" Then
MsgBox "WooHoo!"
Else
MsgBox "Crap!"
End If
End Sub
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
May 2nd, 2002, 09:29 AM
#5
Fanatic Member
Just in case you didn't know....
Same for a file
VB Code:
Private Sub Command77_Click()
If Dir("C:\My Documents\spreadsheet.xls") <> "" Then
MsgBox "Yep!"
Else
MsgBox "Nope!"
End If
End Sub
JO
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
May 2nd, 2002, 09:31 AM
#6
Bouncy Member
Originally posted by joltremari
VB Code:
Private Sub Command77_Click()
If Dir("C:\My Documents\") <> "" Then
MsgBox "WooHoo!"
Else
MsgBox "Crap!"
End If
End Sub
straight from MSDN
-
May 2nd, 2002, 09:45 AM
#7
Can't find them in my toolbox.
Where are they located in access ???
-
May 2nd, 2002, 10:34 AM
#8
Fanatic Member
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
May 3rd, 2002, 01:35 AM
#9
The tools to let the user choose a file trough a drivelist and a filelist. But in Access
-
May 3rd, 2002, 08:54 AM
#10
Found something that is available in the Northwind.mdb
Used this works fine.
Everyone who even has tried to help me THANKS.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|