MarkoKobal
IS-IT--Management
Hi. I have a master/detail form (order form with order items in detail) and I would like to print out the report based on this curently selected form. How? I saw a similar tip but it doesn't work:
Dim stDocName As String
Dim LinkFilter As String
LinkFilter = "recordID = " & Me!recordId
stDocName = <your report name>
DoCmd.OpenReport stDocName, acviewnormal, , LinkFilter
What should I put for recordID ? the primary key of curently selected record?
Dim stDocName As String
Dim LinkFilter As String
LinkFilter = "recordID = " & Me!recordId
stDocName = <your report name>
DoCmd.OpenReport stDocName, acviewnormal, , LinkFilter
What should I put for recordID ? the primary key of curently selected record?