G
Guest
The following code has been working fine for weeks. The past couple of days, I get an error "command 'RecordsGoToNew' isn't available now" when I run this. I checked the enabled references and made sure that MS ActiveX Data objects 2.8 is active which it is. I don't get a compile error with this line. Any suggestions appreciated. Here is my code:
The ">" is added to highlight the malfunctioning line
With Me.frmPatPhoneSub.For
.AllowAdditions = Tru
Me.frmPatPhoneSub.SetFocu
.PatientID = Me.PatientI
.PhoneID = InsertPhoneRecord(
Me.Dirty = Fals
.AllowAdditions = Fals
.Requer
RunCommand acCmdRecordsGoToLas
End With
The ">" is added to highlight the malfunctioning line
With Me.frmPatPhoneSub.For
.AllowAdditions = Tru
Me.frmPatPhoneSub.SetFocu
RunCommand acCmdRecordsGoToNe
.PatientID = Me.PatientI
.PhoneID = InsertPhoneRecord(
Me.Dirty = Fals
.AllowAdditions = Fals
.Requer
RunCommand acCmdRecordsGoToLas
End With