P
Peter Stone
When I click a Command button I want to open one of two forms depending on a
value in the field: Progress in the table: tblText.
I get the Error Message: Object required
The answer is probably simple, but I'm a novice in a remote location and
until a friend brings me a manual in a few weeks I have no other resources.
Private Sub cmdPublishUpdate_Click()
On Error GoTo Err_cmdPublishUpdate_Click
Dim stDocName As String
Dim stLinkCriteria As String
If Tables!tblText!Progress < 9 Then
stDocName = "frmNotEdited"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
stDocName = "frmPublish1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdPublishUpdate_Click:
Exit Sub
End If
Err_cmdPublishUpdate_Click:
MsgBox Err.Description
Resume Exit_cmdPublishUpdate_Click
End Sub
Thanks
Peter
value in the field: Progress in the table: tblText.
I get the Error Message: Object required
The answer is probably simple, but I'm a novice in a remote location and
until a friend brings me a manual in a few weeks I have no other resources.
Private Sub cmdPublishUpdate_Click()
On Error GoTo Err_cmdPublishUpdate_Click
Dim stDocName As String
Dim stLinkCriteria As String
If Tables!tblText!Progress < 9 Then
stDocName = "frmNotEdited"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
stDocName = "frmPublish1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdPublishUpdate_Click:
Exit Sub
End If
Err_cmdPublishUpdate_Click:
MsgBox Err.Description
Resume Exit_cmdPublishUpdate_Click
End Sub
Thanks
Peter