T
Tom
Running Access 2003 on multiple machines with the latest updates.
This code is called in a Form by selecting a button. It opens a Table and
changes the Field Names and then saves the Table. It stores the status of
two buttons as well in a Table named Spicer Option Status. This code has
worked flawlessly for a long time, but recently my company has updated to
IBM T410 Machines. On the IBMs, this code NOW halts on the RunCommand
acCmdSave line. Has something changed or are files not installed? I am
stumped.
Have also tried adding DoCmd.RunCommand acCmdSave with no luck.
Can anyone advise what's going on and how to fix it?
TIA!
Private Sub OptSpicerOn_GotFocus()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("Spicer Option Status")
rs.MoveFirst
rs.Edit
rs!Setting = "2"
rs.Update
rs.Close
SpicerOpt.Value = "2"
DoCmd.Echo False
DoCmd.OpenTable "Cross Detail - Spicer", acViewDesign, acEdit
SendKeys "{DOWN}", True
SendKeys "Red", True
SendKeys "{DOWN}", True
SendKeys "Spicer", True
RunCommand acCmdSave
RunCommand acCmdClose
DoCmd.Echo True
DoCmd.Echo False
DoCmd.OpenTable "Cross Detail - Spicer", acViewDesign, acEdit
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "BoxRed", True
SendKeys "{DOWN}", True
SendKeys "Box", True
RunCommand acCmdSave
RunCommand acCmdClose
DoCmd.Echo True
End Sub
This code is called in a Form by selecting a button. It opens a Table and
changes the Field Names and then saves the Table. It stores the status of
two buttons as well in a Table named Spicer Option Status. This code has
worked flawlessly for a long time, but recently my company has updated to
IBM T410 Machines. On the IBMs, this code NOW halts on the RunCommand
acCmdSave line. Has something changed or are files not installed? I am
stumped.
Have also tried adding DoCmd.RunCommand acCmdSave with no luck.
Can anyone advise what's going on and how to fix it?
TIA!
Private Sub OptSpicerOn_GotFocus()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("Spicer Option Status")
rs.MoveFirst
rs.Edit
rs!Setting = "2"
rs.Update
rs.Close
SpicerOpt.Value = "2"
DoCmd.Echo False
DoCmd.OpenTable "Cross Detail - Spicer", acViewDesign, acEdit
SendKeys "{DOWN}", True
SendKeys "Red", True
SendKeys "{DOWN}", True
SendKeys "Spicer", True
RunCommand acCmdSave
RunCommand acCmdClose
DoCmd.Echo True
DoCmd.Echo False
DoCmd.OpenTable "Cross Detail - Spicer", acViewDesign, acEdit
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "{DOWN}", True
SendKeys "BoxRed", True
SendKeys "{DOWN}", True
SendKeys "Box", True
RunCommand acCmdSave
RunCommand acCmdClose
DoCmd.Echo True
End Sub