Hello;
I am stuck, and would like to resolve my problem.
Am using Access 2003
I have the following, but the DLookup won't work - maybe not good for VBA?
Need help .............
Dim FILEPATH As String
FILEPATH = DLookup("File_P ath_on_Network" , " Records_Investm ents_Group = Form![Records_Investm ents_Group_ALL_ Fields")
lstFilesInDirec tory.Path = FILEPATH
Dim i As Integer
Dim TEXTCONT As String
For i = 0 To lstFilesInDirec tory.ListCount - 1
TEXTCONT = TEXTCONT & lstListofRecord s.List(i)
Next
I am stuck, and would like to resolve my problem.
Am using Access 2003
- I have a form that has the file path in a memo field.
- I have a list box for the list of files in the folder for the filepath
- When I move to the record, I would like the listbox to populate with the most recent files in the folder from the file path that is on the the form
- Sometimes there is no file path, or an invalid one, so need to ignore if there is none, message if there is invalid file list text in the field
I have the following, but the DLookup won't work - maybe not good for VBA?
Need help .............
Dim FILEPATH As String
FILEPATH = DLookup("File_P ath_on_Network" , " Records_Investm ents_Group = Form![Records_Investm ents_Group_ALL_ Fields")
lstFilesInDirec tory.Path = FILEPATH
Dim i As Integer
Dim TEXTCONT As String
For i = 0 To lstFilesInDirec tory.ListCount - 1
TEXTCONT = TEXTCONT & lstListofRecord s.List(i)
Next
Comment