R
Rex Deckard
I am having a problem with the below bit of code, each time I try and
run it, I get an: Wrong number of arguments or invalid property
assignment (Error 450)
The code is as seen below. I am not sure what I am missing, but I bet
it is really simply.
All fields are numeric that are referenced in the code.
-update suffix is a macro
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stDocName1 As String
Dim stLinkCriteria As String
Dim stLinkCriteria1 As String
'DoCmd.RunCommand acCmdSaveRecord
stDocName = "update suffix"
stLinkCriteria = "[bill_of_lading]=" & Me![bill_of_lading]
DoCmd.RunMacro "update suffix", , , stLinkCriteria
'DoCmd.RunMacro stDocName, , , stLinkCriteria
stDocName1 = "bol_entryreprint"
stLinkCriteria1 = "[BOL]=" & Me![BOL]
DoCmd.OpenForm stDocName1, , , stLinkCriteria1
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub
run it, I get an: Wrong number of arguments or invalid property
assignment (Error 450)
The code is as seen below. I am not sure what I am missing, but I bet
it is really simply.
All fields are numeric that are referenced in the code.
-update suffix is a macro
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stDocName1 As String
Dim stLinkCriteria As String
Dim stLinkCriteria1 As String
'DoCmd.RunCommand acCmdSaveRecord
stDocName = "update suffix"
stLinkCriteria = "[bill_of_lading]=" & Me![bill_of_lading]
DoCmd.RunMacro "update suffix", , , stLinkCriteria
'DoCmd.RunMacro stDocName, , , stLinkCriteria
stDocName1 = "bol_entryreprint"
stLinkCriteria1 = "[BOL]=" & Me![BOL]
DoCmd.OpenForm stDocName1, , , stLinkCriteria1
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub