A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Forms with sub forms



 
 
Thread Tools Display Modes
  #1  
Old April 11th, 2006, 10:45 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default 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  
Old April 12th, 2006, 01:52 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 09:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.