-
I have a problem with my VB APPLICATION.
I am executing this code
-------------
With orditem.adorditem
.CommandType = adCmdUnknown
.RecordSource = "Select * from orditem where ordno='" & ordfield(0) & "'"
.Refresh
End With
-----------
it is working fine for a couple of times but the giving a error "Method refresh of Adodc Failed".........
after this error vb is terminating automatically, before terminating this error is flashed
---------------------------------
VB6.exe - Application error
The instruction at "0x007015c8" referenced memory at "0x007015c8". The memory could not be "read".
Click ok to terminate & cancel to debug..
---------------------------------
I will be greatfull to the person who can solve this problem.
Thanks In advance - Rohan
-
Hard to know exactly what is going on here without some specifics but try the following things anyway.
Make sure that you are initilising / de initilising your ADO objects correctly. If you are not closing them down properly, then that may be why it is crashing on the 2nd and 3rd times.
If you can supply any more information, I'd be glad to offer any other advice that I have.