G
Guest
to all,
i haved copied this code from internet and i want to use this on my database
but when i try to run the code it prompt me this error:
Compile Error:
User-defined type not defined
Private Sub cmd_upload_Click()
Dim fso As New FileSystemObject
Dim fldr As Folder
On Error GoTo FolderError
'foldername is the name of the folder you wish to
'create passed by value into this create procedure
Set fldr = fso.CreateFolder(foldername)
Set fldr = Nothing
Set fso = Nothing
Exit Sub
FolderError:
Exit Sub
Resume Next
End Sub
how can i solve this problem?
Resti
i haved copied this code from internet and i want to use this on my database
but when i try to run the code it prompt me this error:
Compile Error:
User-defined type not defined
Private Sub cmd_upload_Click()
Dim fso As New FileSystemObject
Dim fldr As Folder
On Error GoTo FolderError
'foldername is the name of the folder you wish to
'create passed by value into this create procedure
Set fldr = fso.CreateFolder(foldername)
Set fldr = Nothing
Set fso = Nothing
Exit Sub
FolderError:
Exit Sub
Resume Next
End Sub
how can i solve this problem?
Resti