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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program crashes - visual fox pro database

Status
Not open for further replies.

Dan688

Programmer
Dec 29, 2003
128
0
0
GB
Afternoon,
werid one here, I have programmed a routine to have a timer that is set to run a specific procedure every 5 minutes. Problem is the program for some reason crashs out from time to time within a loop.

I know that the error is not occuring when I open the table but it maybe the way I am opening it (if you know what I mean).

Below is a small piece of code:

cnn1.Open "Provider=vfpoledb;" & _
"Data Source=" & mstrPath & ";Mode=ReadWrite"

Set rstCons = New ADODB.Recordset

With rstCons
.CursorLocation = adUseClient
.CursorType = adOpenForwardOnly
.LockType = adLockOptimistic
.Open mstrSQLCode, cnn1, , , adCmdText

....Later on
.update
End With

Users are in the database at the time but not ness. in the record at that time.

Any Ideas?
 
Any idea what line of code is causing the crash?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
No but I'm personally guessing on the .update
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top