Hi everyone,
I want to print the current record (from my form) where the strWhere consists of two ID's, ConsigneeID and VoyageID. Not sure how to do this, I tried the below code (combining the two ID's into one), but that sometimes produces a double record ;-) for obvious reasons. Any Tips?
Pampers![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
There is only one way to change a diaper - fast
I want to print the current record (from my form) where the strWhere consists of two ID's, ConsigneeID and VoyageID. Not sure how to do this, I tried the below code (combining the two ID's into one), but that sometimes produces a double record ;-) for obvious reasons. Any Tips?
Code:
Dim strReportName As String
Dim strWhere1, strWhere2, strWhere3 As Integer
Dim ConsVoyID As String
strReportName = "rprtDemurrageInvoice"
strWhere1 = "[ConsVoyID]=" & Me![ConsVoyID]
DoCmd.OpenReport strReportName, acViewPreview, , strWhere1
Pampers
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
There is only one way to change a diaper - fast