Hi programmers,
i have tried to use the provided code to get the print of the recent record on the form but i am just getting the copies of all records,
Can anyone suggest me how to get print of recent record.
I will be thankful to you
Dim stDocName As String
Dim strWhere As String
DoCmd.OpenReport stDocName, acPreview, strWhere
strWhere = "[InvoiceID]= & Me![InvoiceID]"
DoCmd.PrintOut "Invoice", acViewPreview
( Inovice is my Report name and InvoiceId is first field of the form )
Thanks a lot.