An expression including function causes termination - follow on -
01-28-2005
, 02:59 AM
Hello
I couldn't send follow on message. I am starting a new thread, but
this is to continue the thread with the same title started on 25/01.
Hello John
Thank you for your answer.
No, my application's start-up object is a form. I don't even have the
word Main anywhere through the application.
The sub, which contains the code in question, is called from
CmdOK_Click of the form: Call Reconcile()
There is an error processing command in the sub before the code:
On Error GoTo PcsTableErrorHandler
Interesting that after returning from the function, execution jumps to
End command in the end of the sub rather then to PcsTableErrorHandler
label, which I'd have expected.
I added watch on GetCentre1(PCsRSet.Fields("IDENTIFICATION").Value) .
Maybe, it will be of interest, what the watch window shows:
"Run-time exception thrown:
System.Runtime.InteropServices.COMException - Cannot update. Database
or object is read-only."
I'd be only happy to send whole code, or even project to you. The
project is 1 form and several subs and functions. The code is quite
extensive. After several years, when the application has been used and
developed, often in a hurry, the code is also quite untidy. The
application requires data from a MS Access 2000 database and from
Oracle 9 database and returns data into the same MS Access 2000
database. Maybe, MS will be interested in problems of upgrading such
type of application from vb6 to .NET?
Regards.
Galina |