I am using the following to retrieve a file and put in listbox. It is working fine.
I would like to build on it to include the datecreated of the file and be able to also sort with that date.
[CODE=vb]
Const iPath = "C:\patient\sca ns\Insurance\"
Dim myInsFile As String
Dim strPatientId As String
myInsFile = Dir(iPath & strPatientID & "*.*")
lstInsurance.Cl ear
Do While Not myInsFile = vbNullString
lstInsurance.Ad dItem myInsFile
myInsFile = Dir
Loop
[/CODE]
Thank you for any help
Ken
I would like to build on it to include the datecreated of the file and be able to also sort with that date.
[CODE=vb]
Const iPath = "C:\patient\sca ns\Insurance\"
Dim myInsFile As String
Dim strPatientId As String
myInsFile = Dir(iPath & strPatientID & "*.*")
lstInsurance.Cl ear
Do While Not myInsFile = vbNullString
lstInsurance.Ad dItem myInsFile
myInsFile = Dir
Loop
[/CODE]
Thank you for any help
Ken
Comment