473,466 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Printing SubForms

Hello'

How do I get the subform to print along with the main form?
I want my user's to be able to go in the field with a printout of the
info they need to populate in the database. So when they get back in
the office they can input the data field by field.
The reason I want them to take the actual form & subform is there is
prepopulated data they need in the field.(which is on the form).
& I want the paper version to look exactly like the database version.

Mar 30 '07 #1
4 6133
Okay, So I got access to do what I want pretty much.
I created a Command Button to print it all out using the following
code;
Private Sub Print_Field_Form_Click()
DoCmd.Printout acSelection
End Sub
This prints out the Master form & subform. Although there are many
records for the subform, & it is printing out all subform records. I
want it to print out only the current subform record. How would I
modify this code to do so?
On Mar 30, 12:16 pm, paq...@gmail.com wrote:
Hello'

How do I get the subform to print along with the main form?
I want my user's to be able to go in the field with a printout of the
info they need to populate in the database. So when they get back in
the office they can input the data field by field.
The reason I want them to take the actual form & subform is there is
prepopulated data they need in the field.(which is on the form).
& I want the paper version to look exactly like the database version.

Mar 30 '07 #2
Setting the can grow property of the subform control to "No" will keep the
form expanding. If you want to show only some subset of records, update the
subform record source.

<pa****@gmail.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
Okay, So I got access to do what I want pretty much.
I created a Command Button to print it all out using the following
code;
Private Sub Print_Field_Form_Click()
DoCmd.Printout acSelection
End Sub
This prints out the Master form & subform. Although there are many
records for the subform, & it is printing out all subform records. I
want it to print out only the current subform record. How would I
modify this code to do so?
On Mar 30, 12:16 pm, paq...@gmail.com wrote:
Hello'

How do I get the subform to print along with the main form?
I want my user's to be able to go in the field with a printout of the
info they need to populate in the database. So when they get back in
the office they can input the data field by field.
The reason I want them to take the actual form & subform is there is
prepopulated data they need in the field.(which is on the form).
& I want the paper version to look exactly like the database version.


Mar 30 '07 #3
Can Grow works fine if the partticular record you want to print
happens to be first in the list. If you want the second record you
cant get it individually.

acSelection prints the Current "Main Form" & all it Sub Records.
How to I get it to print only the active 'Main' & 'Subform' records.
On Mar 30, 2:24 pm, "paii, Ron" <p...@packairinc.comwrote:
Setting the can grow property of the subform control to "No" will keep the
form expanding. If you want to show only some subset of records, update the
subform record source.

<paq...@gmail.comwrote in message

news:11**********************@p15g2000hsd.googlegr oups.com...
Okay, So I got access to do what I want pretty much.
I created a Command Button to print it all out using the following
code;
Private Sub Print_Field_Form_Click()
DoCmd.Printout acSelection
End Sub
This prints out the Master form & subform. Although there are many
records for the subform, & it is printing out all subform records. I
want it to print out only the current subform record. How would I
modify this code to do so?
On Mar 30, 12:16 pm, paq...@gmail.com wrote:
Hello'
How do I get the subform to print along with the main form?
I want my user's to be able to go in the field with a printout of the
info they need to populate in the database. So when they get back in
the office they can input the data field by field.
The reason I want them to take the actual form & subform is there is
prepopulated data they need in the field.(which is on the form).
& I want the paper version to look exactly like the database version.- Hide quoted text -

- Show quoted text -

Apr 3 '07 #4
You will need to identify the visible sub form records, then adjust your sub
form's source query to show only those records. As for identifying the
visible sub form records someone else may need to help you.

<pa****@gmail.comwrote in message
news:11*********************@w1g2000hsg.googlegrou ps.com...
Can Grow works fine if the partticular record you want to print
happens to be first in the list. If you want the second record you
cant get it individually.

acSelection prints the Current "Main Form" & all it Sub Records.
How to I get it to print only the active 'Main' & 'Subform' records.
On Mar 30, 2:24 pm, "paii, Ron" <p...@packairinc.comwrote:
Setting the can grow property of the subform control to "No" will keep
the
form expanding. If you want to show only some subset of records, update
the
subform record source.

<paq...@gmail.comwrote in message

news:11**********************@p15g2000hsd.googlegr oups.com...
Okay, So I got access to do what I want pretty much.
I created a Command Button to print it all out using the following
code;
Private Sub Print_Field_Form_Click()
DoCmd.Printout acSelection
End Sub
This prints out the Master form & subform. Although there are many
records for the subform, & it is printing out all subform records. I
want it to print out only the current subform record. How would I
modify this code to do so?
On Mar 30, 12:16 pm, paq...@gmail.com wrote:
Hello'
How do I get the subform to print along with the main form?
I want my user's to be able to go in the field with a printout of
the
info they need to populate in the database. So when they get back in
the office they can input the data field by field.
The reason I want them to take the actual form & subform is there is
prepopulated data they need in the field.(which is on the form).
& I want the paper version to look exactly like the database
version.- Hide quoted text -

- Show quoted text -


Apr 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John | last post by:
Hi, I have simple database based on 3 tables. Relationship is 'one to many' between table 1 and 2, also between 2 and 3 table'one to many'. I have made form where I enter data in all 3 tables....
1
by: M Wells | last post by:
Hi All, I am developing an Access 2003 project application with the back end in SQL Server 2003. I have a master form that tracks projects, and several subforms on it that track various...
2
by: Jack | last post by:
Hi all, I searched the archives and found everyone happy with Stephen's MouseWheel On/Off code except for those with subforms. Stephen's page indicates that he has added code to handle subforms...
0
by: Jack | last post by:
Gday everyone, I'm dearly hoping Stephen Lebans is going to update his masterpeice to stop the mouse wheel scrolling to work on subforms *he has indicated this to me but of course beggers can't...
1
by: slothboy | last post by:
Hey guys, I'm having a little trouble printing subforms. I've attached the snippet of code that prints my form which contains various subforms. It prints bounded controls on the subform just...
1
by: tremor | last post by:
I'd like to print a form based on the filters currently applied to it (these are again based on selections in combo-boxes). The form has multiple subforms, and as I try to print it, it prints all...
2
by: JonC | last post by:
I have a database where the user selects recordsets via a form with 2 levels of nested subforms. The recordsets are filtered using a series of linked combo boxes and I would like to be able to...
1
by: paquer | last post by:
I have forms that are used in the office as well as in the field. I want user's to be able to print out an exact copy of the form for "in the field" data entry. (Yes we are still stuck in the 90's....
1
by: tmh86 | last post by:
I am currently building a database within Access 2007. I have a form that is populated via vba coding and thereform is not stored in a specific table. I have created a button that essentially runs...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.