G
Guest
I get this message, The command or action "Save Record" isn't available now.,
when I try to run the following sub. I have the same version of access
(2000) on two machines and the sub runs on one but not the other. The one
that I get the error message on is networked to the back end db on another
machine. The one that works has the db backend on it. What am I doing wrong?
-------start code---------------
Private Sub CopyBWAdd_Click()
On Error GoTo Err_CopyBWAdd_Click
If IsNull(Me![ClientID]) Then
MsgBox "Enter client information before adding copies."
Else
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "CopyBWAdd"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[fldClientID]=" & "'" & Me.ClientID & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
Exit_CopyBWAdd_Click:
Exit Sub
Err_CopyBWAdd_Click:
MsgBox Err.Description
Resume Exit_CopyBWAdd_Click
End Sub
------end code---------
when I try to run the following sub. I have the same version of access
(2000) on two machines and the sub runs on one but not the other. The one
that I get the error message on is networked to the back end db on another
machine. The one that works has the db backend on it. What am I doing wrong?
-------start code---------------
Private Sub CopyBWAdd_Click()
On Error GoTo Err_CopyBWAdd_Click
If IsNull(Me![ClientID]) Then
MsgBox "Enter client information before adding copies."
Else
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "CopyBWAdd"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[fldClientID]=" & "'" & Me.ClientID & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
Exit_CopyBWAdd_Click:
Exit Sub
Err_CopyBWAdd_Click:
MsgBox Err.Description
Resume Exit_CopyBWAdd_Click
End Sub
------end code---------