S
Stephen English
We have three text files from a till every day - they are just text like what
would print on a cash registrer slip.
I have been able to read them line by line and extract the data into a table.
I now want to copy the text files into OLE Objects in a table.
If I create Table1 with an OLE object field and open the table and then go
to Windows Explorer and copy the file, I can paste it into the OLE object
field and then delete the original file and I have a copy in the database
which is what we want.
However, I want to do this in my code
I can get the file
Set f = fsoSysObj.GetFile(strPath & strFile)
and then
f.copy
copies it.
My question is how do I now insert that into my OLE Object field in the table?
Thanks
Stephen
would print on a cash registrer slip.
I have been able to read them line by line and extract the data into a table.
I now want to copy the text files into OLE Objects in a table.
If I create Table1 with an OLE object field and open the table and then go
to Windows Explorer and copy the file, I can paste it into the OLE object
field and then delete the original file and I have a copy in the database
which is what we want.
However, I want to do this in my code
I can get the file
Set f = fsoSysObj.GetFile(strPath & strFile)
and then
f.copy
copies it.
My question is how do I now insert that into my OLE Object field in the table?
Thanks
Stephen