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
No, the DB is not split, a max of 5 users update, users have Access on
desktop with a shortcut to a single BD on server.
Kind regards,
Robert
No error messages generated.
The Event - cmdSaveLines_Click()
The form is unbound, combo boxes have SQL source, textboxes accept user data.
The cmdSaveLines button,
1) checks for user capture errors
2) Procedure call - Read and write a transaction number
3) Procedure call - Inserts 1 row of master data.
4) Loops a Procedure call - Updates Detailed data to 2 tables - max 16 Rows
5) MsgBox - Save complete
6) Close form
7) Open form initialized
The code occasionally stops at Step 3, it completes step 2.
No msgbox appears, the form is not closed or reopened.
I then print the form, and recapture the exact same data and it runs.
Kind Regards
Robert