Question:
I have text files that I want to display the contents of in a field on the account main screen. In the account table, I have a field that references the specific text file. How would I go about adding that to the account form?
Answer:
Const conForReading = 1
Dim objFSO, objReadFile, contents
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objReadFile = objFSO.OpenTextFile(“\SlxdemoDocumentsPicsTextTEXTNew36104.txt”, 1, False)
contents = objReadFile.ReadAll
objReadFile.close
memo2.Text = contents
Set objFSO = Nothing
Set objReadFile = Nothing



