In
Tony_VBACoder said:
With Access 2000, is there a way to use VBA to import the contents of
a Text file into a Memo field of a table?
It's easy enough to do using a bound text box on a form. For example:
'----- start of example code -----
Dim strFileName As String
Dim intFileNo As Integer
strFileName = Me.txtFilePath ' full path to file
intFileNo = FreeFile()
Open strFileName For Input As #intFileNo
Me.txtFileData = Input(LOF(intFileNo), intFileNo)
Close #intFileNo
'----- end of example code -----
Note that the example code doesn't check the size of the file to make
sure it's not too big to save.