Hi there i have a small system for sales.
Each sales make Minimum 2 INSERTS
The first one.
INSERT on sales table the IdCostumer, Date...etc among others.
The sencond.
INSERT the IdProduct, Cost...etc
Like a sourcery 1 INSERT is not executing of 1000.
Yes thats right......1 of aprox 1000 INSERT is not working.
History ....
I have 9 Computers accessing the same database on a Central Server.
Client server arquitecture.
8 Of the computers are executing some Inserts on diferent tables(not sales)
and SELECTs from all the tables on the DB.
Just one computer is INSERTINg to the sales table.
All the computers are working at the same time, The user for everyone in the database is the native "ROOT" user with password.
Everything is working just fine, just that small orphan of a 1000 is malfunctioning.
Does Any one has a Clue of what the "F%&/%#$%&K" is going on.
Ive checked my code several times, and i dont see a logical error.
CODE
*******First INSERT*************
Set Rs = New ADODB.Recordset
Rs.CursorLocation = adUseClient
Rs.Open "INSERT INTO venta VALUES ('" & VarFolio & " ','" & Combo1.ItemData(Combo1.ListIndex) & "','" & Menu.IdUsuario & "','" & idpacaux & "'" _
& ",'0','" & total & "','" & Format(Now, "yyyy-mm-dd hh:mm:ss") & "','" & VarSepagaV & "','" & VarCambioV & "','" & VarTpvV & "'" _
& ",'no','no','0')", conn, adOpenDynamic, adLockOptimistic
*******Second INSERT*************
Dim w, j As Integer
w = 1
j = n + 1
Do While Not w = j
Set Rs9 = New ADODB.Recordset
Rs9.CursorLocation = adUseClient
MSFlexGrid1.Row = w
MSFlexGrid1.Col = 1
a = MSFlexGrid1.text
MSFlexGrid1.Col = 2
b = MSFlexGrid1.text
MSFlexGrid1.Col = 3
C = MSFlexGrid1.text
Rs9.Open "INSERT INTO relser (IdSR, FolioVR, PrecioR, HonMedR) VALUES (" & b & "," & VarFolio & "," & a & "," & C & ")", conn, adOpenDynamic, adLockOptimistic
w = w + 1
Loop
' It makes a loop on the MSFlexGrid1 to chek all the products selected for that sale.
I really dont know if ist me, if its MySQL, MyODBC, The network........I really need help!
Thanks for the Help Iluminated people
Each sales make Minimum 2 INSERTS
The first one.
INSERT on sales table the IdCostumer, Date...etc among others.
The sencond.
INSERT the IdProduct, Cost...etc
Like a sourcery 1 INSERT is not executing of 1000.
Yes thats right......1 of aprox 1000 INSERT is not working.
History ....
I have 9 Computers accessing the same database on a Central Server.
Client server arquitecture.
8 Of the computers are executing some Inserts on diferent tables(not sales)
and SELECTs from all the tables on the DB.
Just one computer is INSERTINg to the sales table.
All the computers are working at the same time, The user for everyone in the database is the native "ROOT" user with password.
Everything is working just fine, just that small orphan of a 1000 is malfunctioning.
Does Any one has a Clue of what the "F%&/%#$%&K" is going on.
Ive checked my code several times, and i dont see a logical error.
CODE
*******First INSERT*************
Set Rs = New ADODB.Recordset
Rs.CursorLocation = adUseClient
Rs.Open "INSERT INTO venta VALUES ('" & VarFolio & " ','" & Combo1.ItemData(Combo1.ListIndex) & "','" & Menu.IdUsuario & "','" & idpacaux & "'" _
& ",'0','" & total & "','" & Format(Now, "yyyy-mm-dd hh:mm:ss") & "','" & VarSepagaV & "','" & VarCambioV & "','" & VarTpvV & "'" _
& ",'no','no','0')", conn, adOpenDynamic, adLockOptimistic
*******Second INSERT*************
Dim w, j As Integer
w = 1
j = n + 1
Do While Not w = j
Set Rs9 = New ADODB.Recordset
Rs9.CursorLocation = adUseClient
MSFlexGrid1.Row = w
MSFlexGrid1.Col = 1
a = MSFlexGrid1.text
MSFlexGrid1.Col = 2
b = MSFlexGrid1.text
MSFlexGrid1.Col = 3
C = MSFlexGrid1.text
Rs9.Open "INSERT INTO relser (IdSR, FolioVR, PrecioR, HonMedR) VALUES (" & b & "," & VarFolio & "," & a & "," & C & ")", conn, adOpenDynamic, adLockOptimistic
w = w + 1
Loop
' It makes a loop on the MSFlexGrid1 to chek all the products selected for that sale.
I really dont know if ist me, if its MySQL, MyODBC, The network........I really need help!
Thanks for the Help Iluminated people