G
Guest
Hi - Please help
I use Access 2000 mdb with VBA learning from the help files, I started a few
months ago for office applications located on a server.
All went well until multiple users updated the same "production" tables.
The application does not hang, the form is fully operational,
but occasionally no update "INSERT" of the data takes place
and the event code for the save button does not complete.
This does not seem to be a network problem. I did change the code from the
DoCmd.RunSql and used connection.execute with .BeginTrans .CommitTrans and
had the same problem.
I would appreciate some advice in the interim, and for the long term can
someone recommend a intermediate to advanced book that I can purchase.
Here some of the code…
Dim vsSql As String 'Add Session header.
vsSql = " " & _
"INSERT INTO [Production Operation Session Header] " & _
"( " & _
" PrdSsHdDocRef, " & _
" RspCode , " & _
" ShiftCode , " & _
" PressCode , " & _
" PrdSCode , " & _
" OrdDItem , " & _
" PrdSsHdNotes , " & _
" PrdSsHdStart , " & _
" PrdSsHdEnd " & _
" ) " & _
"VALUES " & _
" ( " & _
" '" & txtDocNum.Value & _
"','" & cbbOpr.Value & _
"','" & cbbShift.Value & _
"','" & cbbWorkCenter.Value & _
"','" & cbbFormat.Value & _
"','" & cbbJob.Value & _
"','" & txtNotes.Value & _
"',#" & txtHdStart.Value & _
"#,#" & txtHdEnd.Value & _
"#);"
DoCmd.RunSQL (vsSql)
Thanking you
I use Access 2000 mdb with VBA learning from the help files, I started a few
months ago for office applications located on a server.
All went well until multiple users updated the same "production" tables.
The application does not hang, the form is fully operational,
but occasionally no update "INSERT" of the data takes place
and the event code for the save button does not complete.
This does not seem to be a network problem. I did change the code from the
DoCmd.RunSql and used connection.execute with .BeginTrans .CommitTrans and
had the same problem.
I would appreciate some advice in the interim, and for the long term can
someone recommend a intermediate to advanced book that I can purchase.
Here some of the code…
Dim vsSql As String 'Add Session header.
vsSql = " " & _
"INSERT INTO [Production Operation Session Header] " & _
"( " & _
" PrdSsHdDocRef, " & _
" RspCode , " & _
" ShiftCode , " & _
" PressCode , " & _
" PrdSCode , " & _
" OrdDItem , " & _
" PrdSsHdNotes , " & _
" PrdSsHdStart , " & _
" PrdSsHdEnd " & _
" ) " & _
"VALUES " & _
" ( " & _
" '" & txtDocNum.Value & _
"','" & cbbOpr.Value & _
"','" & cbbShift.Value & _
"','" & cbbWorkCenter.Value & _
"','" & cbbFormat.Value & _
"','" & cbbJob.Value & _
"','" & txtNotes.Value & _
"',#" & txtHdStart.Value & _
"#,#" & txtHdEnd.Value & _
"#);"
DoCmd.RunSQL (vsSql)
Thanking you