Hi,
I would like to list all files in a specified folder. The files are placed in the following folder: "\\nodc01\ssa\Utstyr\Dokumenter\" & Me.Internnr" so that it will show different file content depending on what's selected/opened.
I have inserted a list and added this code (found here: Access/VBA Tutorials - List files recursively) to an event procedure:
...but it doesn't work!
The error code says "Compile error: Sub or Function not defined".
Can anyone please help me with this?
I would like to list all files in a specified folder. The files are placed in the following folder: "\\nodc01\ssa\Utstyr\Dokumenter\" & Me.Internnr" so that it will show different file content depending on what's selected/opened.
I have inserted a list and added this code (found here: Access/VBA Tutorials - List files recursively) to an event procedure:
Code:
Private Sub FilListe_Enter()
Dim strURL As String
strURL = "\\nodc01\ssa\Utstyr\Dokumenter\" & Me.Internnr
Call ListFiles(strURL, , , Me.FilListe)
End Sub
...but it doesn't work!
The error code says "Compile error: Sub or Function not defined".
Can anyone please help me with this?