Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error on OLE

Status
Not open for further replies.

tinac99

Programmer
Jan 17, 2002
58
US
I have a datawindow and a matching word doc file for each of the rows in the dw(guaranteed). When rowfocuschanged is triggered, the application displays the matching word document of the row in the OLE embedded on the window(not the dw). I used this script in the rowfocuschanged event:

list.media_number = This.GetItemNumber(currentrow,"edit_media_editmediaid")
vPath = 'K:\Content Apps\media\D' + string(list.media_number) + ".doc"

ole_detail.clear()
if FileExists(vpath) then
ole_detail.LinkTo(vPath)
end if

I checked on all instances and vPath is a valid filename.
Can anyone please provide some insights as to why this particular function is sometimes working and sometimes not(the application crashes - "error log is being generated")?

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top