Forum Discussion
gregm57
Jan 29, 2021Copper Contributor
Print a single record report from a button on a form
Hello, I am converting a database from Paradox to Access. I have limited Access experience. I am trying to print a single record on a report launched from a button on the form. I duplicated some co...
- Jan 30, 2021Try
DoCmd.OpenReport "FLEET-MACHINE DATA SHEET", acViewPreview, , "[UNIT]=" & Me.Unit
Jan 30, 2021
Try
DoCmd.OpenReport "FLEET-MACHINE DATA SHEET", acViewPreview, , "[UNIT]=" & Me.Unit
DoCmd.OpenReport "FLEET-MACHINE DATA SHEET", acViewPreview, , "[UNIT]=" & Me.Unit
- gregm57Feb 02, 2021Copper Contributor
Thanks for the coding, it works better but still requires the user to input the unit number. Is there a way to print the record selected on the form without user input?
I found another issue, I have a number of machines in inventory where the stock number has a dash "-" in it. this causes the button to fail.
Thanks again for the assistance, it is very helpful for a neophyte such as myself.