>>>
>>>OK, try this:
>>>
>>>LOCAL lcOldPath
>>>lcOldPath = SET([PATH])
>>>SET PATH TO
>>>WAIT WINDOW FILE([MyTable.DBF])
>>>TRY
>>> USE (m.DataFolder + "mytable") IN 0 ALIAS MYTABLE AGAIN SHARED
>>> INSERT INTO MyTable (MyField) VALUES ([ABC])
>>>CATCH TO oExcpt
>>> MessageBox([Error happened ]+oExcpt.Message)
>>>ENDTRY
>>>USE IN MyTable
>>>SET PATH TO (lcOldPath)
>>>
>>
>>Your code works well when I call it from VFP. When I comment out the TRY CATCH ENDTRY and call it via the Ole Db, the table is not updated.
>
>Is the DBC on the Network? Could it be rights issue?
>
>Can you try a test with database on your local drive?
Everything here is on my local drive, no network drive.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham