halem2
Registered User.
- Local time
- Today, 09:56
- Joined
- Nov 8, 2006
- Messages
- 180
Hi folks:
using MS Access 2000. I have this sub that works great but the DoCmd.CLose (line 5) errors out. It reads "Runtime Error 2585. This action can't be processed g on a form or report". Any ideas?
Private Sub Form_Current()
If Me.NewRecord = True Then
Me.Caption = "To add new go to Forefront ..."
MsgBox "To Add New Vendors Go To FOREFRONT", vbOKOnly
DoCmd.Close acForm, "frmVendor", acSaveNo
Else
Me.Caption = IIf(IsNull(Me!Vendor_Name), " ", "Data for " & Me!Vendor_Name)
End If
End Sub
thanks
using MS Access 2000. I have this sub that works great but the DoCmd.CLose (line 5) errors out. It reads "Runtime Error 2585. This action can't be processed g on a form or report". Any ideas?
Private Sub Form_Current()
If Me.NewRecord = True Then
Me.Caption = "To add new go to Forefront ..."
MsgBox "To Add New Vendors Go To FOREFRONT", vbOKOnly
DoCmd.Close acForm, "frmVendor", acSaveNo
Else
Me.Caption = IIf(IsNull(Me!Vendor_Name), " ", "Data for " & Me!Vendor_Name)
End If
End Sub
thanks