All client systems are running access runtime to access this database and random runtime errors are being reported. There is no runtime error number just the error.
It seems to only happen when a user clicks on a button that is meant to copy the data that is in a field and it also writes back to the database what "policy" was used. The code behind the button is below and i was wondering if anyone might be able to see any problem with the code possibly causing the issue, again it is random and does not happen all the time. Any suggestions are welcome!
Thanks in advance for any help with this!
Paul
It seems to only happen when a user clicks on a button that is meant to copy the data that is in a field and it also writes back to the database what "policy" was used. The code behind the button is below and i was wondering if anyone might be able to see any problem with the code possibly causing the issue, again it is random and does not happen all the time. Any suggestions are welcome!
Code:
Private Sub copybutton_Click()
If choose.Value = "Sooner date was available" Then editnotes1.SetFocus
If choose.Value = "sooner date was not available" Then editnotes2.SetFocus
RunCommand acCmdCopy
editnotes1 = Notes1.Value
editnotes2 = Notes2.Value
'saves username, date and saves what policy was used
Forms!pp_chooser!frmUsage!username = fOSUserName()
Forms!pp_chooser!frmUsage!userdate = Now()
Forms!pp_chooser!frmUsage!Policy = "Sooner Dates"
Forms!pp_chooser!frmUsage.SetFocus
Forms!pp_chooser!frmUsage.SourceObject = ""
Forms!pp_chooser!frmUsage.SourceObject = "frmusage"
DoCmd.GoToRecord , , acNewRec
'end 'saves username, date and saves what policy was used
End Sub
Thanks in advance for any help with this!
Paul