Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2006, 09:59 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printing Reports From Forms

Hi All
I am trying to create a continuous form that the user can select the record they would like to view and when in this record print the details in report format. Is this possible
Thanks


Brendan Bartley
__________________
Brendan Bartley
 
Old June 30th, 2006, 07:35 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Yes. How afar along are you?

I do this same thing using a continuous form where the user selects a second form based on the continuous form search function. This is the button code to open the next form:

'-----
    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "frmDetails"

    stLinkCriteria = "[DetailsID]=" & Me![DetailsID]
    DoCmd.Close
    DoCmd.OpenForm stDocName, , , stLinkCriteria
'-----

Alternatively, you could run a report using the link.
There is a button on each detail section of the continuous form. This works well for me.

Does this help?

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
printing reports ivnurse2001 VB How-To 2 May 20th, 2007 12:07 AM
capturing printing settings when printing reports nikolaosk Access VBA 0 February 8th, 2005 04:14 AM
Printing Forms in VB.NET? gisenberg VB.NET 2002/2003 Basics 0 July 23rd, 2004 08:22 PM
Printing reports tucker Access VBA 1 February 9th, 2004 01:04 PM
Printing formatted documents from c# web forms Grahame2003 C# 0 February 6th, 2004 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.