G
Guest
Hi All,
I've pasted the codes from http://allenbrowne.com/ser-59.html into a module
and created a form with a listbox. In the on Open event of the form I have
the following code:
Private Sub Form_Open(Cancel As Integer)
Call ListFiles("g:\user\contracts\Data_files", "*.csv", ,
Me.lstFileList)
End Sub
However, I am getting a datatype mismatch error. Can someone tell me why?
Also, the example says to place the above code in the On Load event but the
sub is for the On Open event. Which is it?
Thanks!
I've pasted the codes from http://allenbrowne.com/ser-59.html into a module
and created a form with a listbox. In the on Open event of the form I have
the following code:
Private Sub Form_Open(Cancel As Integer)
Call ListFiles("g:\user\contracts\Data_files", "*.csv", ,
Me.lstFileList)
End Sub
However, I am getting a datatype mismatch error. Can someone tell me why?
Also, the example says to place the above code in the On Load event but the
sub is for the On Open event. Which is it?
Thanks!