B
BLTibbs
I am trying to print the current record from a form using the following code
and the report allways comes up with #error in the field names. What did I
do wrong?
'print single label record from form
Dim strWhere As String
Dim stDocName As String
If Me.Dirty Then
Me.Dirty = False
End If
stDocName = "ShipLabelRpt"
strWhere = "[order-id] = '" & Form_CustomerServiceFrm.order_id & "'"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
and the report allways comes up with #error in the field names. What did I
do wrong?
'print single label record from form
Dim strWhere As String
Dim stDocName As String
If Me.Dirty Then
Me.Dirty = False
End If
stDocName = "ShipLabelRpt"
strWhere = "[order-id] = '" & Form_CustomerServiceFrm.order_id & "'"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere