dgambale@gmail.com
Registered User.
- Local time
- Today, 12:08
- Joined
- Jul 31, 2013
- Messages
- 19
Hello,
I have an Access 2013 database with linked tables to Sharepoint. On several forms I have a button that when clicked, it shows the record in the report as preview. The code I use is as follows for the button on the form.
Me.Refresh
DoCmd.OpenReport "rptquoteExtreme", acViewPreview, , "Quote_ID=" & Me.Quote_ID
Application.DoCmd.SelectObject acReport, "rptquoteExtreme"
When the user clicks the print button (to save as a PDF) from the ribbon in the Report, most of the time it works as expected.....However sometimes all the records from the original form prints instead of the specific record from the report as shown. To fix it, users have to close access and reopen and it seems to oddly work...most of the time.
I tried adding focus to the report by the last line of code but it made no difference. Any suggestions would be greatly appreciated....Im baffled.
Dean
I have an Access 2013 database with linked tables to Sharepoint. On several forms I have a button that when clicked, it shows the record in the report as preview. The code I use is as follows for the button on the form.
Me.Refresh
DoCmd.OpenReport "rptquoteExtreme", acViewPreview, , "Quote_ID=" & Me.Quote_ID
Application.DoCmd.SelectObject acReport, "rptquoteExtreme"
When the user clicks the print button (to save as a PDF) from the ribbon in the Report, most of the time it works as expected.....However sometimes all the records from the original form prints instead of the specific record from the report as shown. To fix it, users have to close access and reopen and it seems to oddly work...most of the time.
I tried adding focus to the report by the last line of code but it made no difference. Any suggestions would be greatly appreciated....Im baffled.
Dean