If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Forms with sub forms
Thank you for reading this question
I have a form with a subform, the sub gives all the info on a customer. That works good On the form is another sub form that has a sub form, this form is actually an appointment form to be printed. All the forms are linked to the master by phone number. The sub for the appt form is invisible. I have a macro that opens it and prints, unfortunaltely it does not print the active record on the main form. I would appreciate any advice rgds George |
#2
|
|||
|
|||
Forms with sub forms
George,
The functionality Access provides in printing forms is limited. I suggest you create a report based on a query that brings all the information you need into it, and print the report with a command button, filtering by the current main form record: Dim stDocName As String Dim stLinkCriteria As String stDocName = "YourQuery" stLinkCriteria = "[PhoneNumber] = " & Me![YourFormPhoneNumberControl] DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria This code opens the report in Preview mode. To print it directly, change acPreview to acViewNormal. Hope that helps. Sprinks "George Gerhard" wrote: Thank you for reading this question I have a form with a subform, the sub gives all the info on a customer. That works good On the form is another sub form that has a sub form, this form is actually an appointment form to be printed. All the forms are linked to the master by phone number. The sub for the appt form is invisible. I have a macro that opens it and prints, unfortunaltely it does not print the active record on the main form. I would appreciate any advice rgds George |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
printing forms | Kagiso | General Discussion | 2 | December 14th, 2005 11:21 PM |
printing only forms | Kagiso | General Discussion | 1 | December 14th, 2005 05:32 PM |
Cascading forms driving me crazy | David | Using Forms | 1 | December 1st, 2005 05:08 AM |
General question about naming conventions for forms | Mister John Doe | Using Forms | 1 | January 6th, 2005 02:31 AM |
Menubar listing open forms? | Harmannus | Using Forms | 0 | December 23rd, 2004 01:33 AM |