Using ver. 2003
I am having some problems putting text from a Word doc into an Access table field. I have an Outlook task form I am writing VBScript behind to do this to put text into a work order. The problem is stemming from contructing the SQL statement. Here is my code thus far:
set myWord = CreateObject("Word.Application")
myWord.Documents.Add
myWord.Visible = True
<code that adds text to my Word doc> --unimportant
mySQL="UPDATE Tasks SET Tasks.Note=" & <problem area> & " WHERE Tasks.WO_Num=" & myWO
where <problem area> explains itself. What I would like to do here is take the text of the Word document I have just created & saved and put it into this database field. Is there a method or property in Word that will return something the SQL statement will read as a string or text?
Any ideas would be greatly appreciated!
Thanks,
Brad
I am having some problems putting text from a Word doc into an Access table field. I have an Outlook task form I am writing VBScript behind to do this to put text into a work order. The problem is stemming from contructing the SQL statement. Here is my code thus far:
set myWord = CreateObject("Word.Application")
myWord.Documents.Add
myWord.Visible = True
<code that adds text to my Word doc> --unimportant
mySQL="UPDATE Tasks SET Tasks.Note=" & <problem area> & " WHERE Tasks.WO_Num=" & myWO
where <problem area> explains itself. What I would like to do here is take the text of the Word document I have just created & saved and put it into this database field. Is there a method or property in Word that will return something the SQL statement will read as a string or text?
Any ideas would be greatly appreciated!
Thanks,
Brad