2ippy
Newbie Here, Be gentle.
- Local time
- Today, 15:02
- Joined
- Nov 10, 2006
- Messages
- 78
I'm trying to use a button to clear and then filter a report, with 2 variables.
CustomerID and ItemID
And then print, from a form i have.
Tried to use a similar code used from a form to form, but I'm quite useless
CustomerID and ItemID
And then print, from a form i have.
Code:
Private Sub Command86_Click()
Dim stDocName As String
Dim SupID
Dim SupID2
SupID = Me![CustomerID]
SupID2 = Me![ItemID]
stDocName = "Receipt"
DoCmd.OpenReport stDocName, , , , acFormAdd
Reports![Receipt]!CustomerID = SupID
Reports![Receipt]!ItemID = SupID2
Tried to use a similar code used from a form to form, but I'm quite useless
