M
mattc66 via AccessMonster.com
I have a form with data that the user has input. When they click a print
button on my form, I want certain feilds of data to append another table in
my database, but is not part of the form that contains the button.
How would I write the code to do this. The below code is not working.
Private Sub cmdPrint_Click()
Dim stLinkCriteria As String
stLinkCriteria = "[OrderNum]=" & "'" & [OrderNum] & "'"
If DCount("OrderNum", "tblOrders", stLinkCriteria) >= 1 Then
Table!ProductionPlanner!ShipID = Forms!frmShipmain!ShipID
Table!ProductionPlanner!ShipDate = Forms!frmShipmain!ShipDate
Table!ProductionPlanner!TrackingNum = Forms!frmShipmain!TrackingNum
End If
End Sub
button on my form, I want certain feilds of data to append another table in
my database, but is not part of the form that contains the button.
How would I write the code to do this. The below code is not working.
Private Sub cmdPrint_Click()
Dim stLinkCriteria As String
stLinkCriteria = "[OrderNum]=" & "'" & [OrderNum] & "'"
If DCount("OrderNum", "tblOrders", stLinkCriteria) >= 1 Then
Table!ProductionPlanner!ShipID = Forms!frmShipmain!ShipID
Table!ProductionPlanner!ShipDate = Forms!frmShipmain!ShipDate
Table!ProductionPlanner!TrackingNum = Forms!frmShipmain!TrackingNum
End If
End Sub