473,479 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Report print

22 New Member
Hi - I haven't built a report in years and may have lost the basics....
I am creating a report for a single contract I send to a single customer.
Portrait .25" margins all around so I have 8" width and 10.5" height. I am having trouble printing in order the way I need, and am looking for instruction how to set that up in VBA.
Record source is a query with parameters.
It has these sections:
Page Header .625"
Group header, 1.5" is set to Keep Together in the property sheet, and Keep whole group together on one page in the group,sort.
Detail .2917 and can be 1 - 60 rows, is set to No in the property sheet
Group footer, 1.2917" is set to Keep together in the property sheet, and Keep whole group together on one page in the group,sort.
Page footer, 6.25" is a bunch of terms and conditions, and I still have to add the signatures at the bottom.

I'm not sure I set this correct in the properties.
The records I'm working in now has 8 rows and My page footer seems to be fixing this sizing because it is breaking the page at 3". I'm getting page and group header with 2 records on the first page, 6 records on the 2nd page, then the group footer on the third. The page footer is the same on each page.

What I need to do is
1.) figure out if I'm confusing it with my keep togethers?
2.) in vba - count the rows in the detail section, determine the height, and force the group footer under it (most commonly will be on the first page), then start my page footer letting that break to the second page.

I do not know how to write the count in sql, or loop through the syntax in vba.
My details are CHPID, Description, price, ext - I need a count of the CHPID in the record source.
Can anyone show some examples I could modify?
Can a page footer have a page break?
Should I use report header and footer?

Thank you for any holes you can plug up!!!!
I've attached some visual aids......
Attached Files
File Type: pdf 購銷合同 Product purchase and sale contract ENGLISH.pdf (136.5 KB, 85 views)
File Type: pdf SELECT qryPS4rptContract1.pdf (173.6 KB, 91 views)
File Type: pdf rptPSSContract.pdf (163.3 KB, 99 views)
Jan 29 '19 #1
2 1042
twinnyfo
3,653 Recognized Expert Moderator Specialist
I think I kind of understand what you are trying to get at, but your description and list of questions are not quite so clear that I can give you any purposeful advice.

Your attachment with the SQL is not helpful, other than to show you are using eight records. What happens if you have 12 records? 25? Only 1?

Are these contracts intended to fit on one page? If not, then little else really matters--other than simple preference.

Concerning keeping things together, because your footers are rather large and contain multiple controls, keep in mind that a single control will never be split between multiple pages. But, you can keep the entire section together--which it appears you are able to do.

If the general contract always flows to two pages, then a simple reorganization of your contract may make things a bit, but I am not on a place to tell you that is what you need to do.

If your sole intent is to keep everything on one page, then that is a nearly impossible task, as your customers may order many products. It may be wiser to have a first page, listing the order inventory and total cost, and a second page listing all the contractual agreements.

Not sure how much this hepps, but I am willing to work through details if you can perhaps explain a bit better.
Jan 29 '19 #2
MC42015
22 New Member
Thank you twinnyfo - you gave me a lot of clarity here!
My frustration has lowered!!
So, yes, these will always be 2-pages.
I'm going to play with it some more which may cause more questions.
Wish me luck! I want these live by Feb 5........
Jan 30 '19 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3330
by: Devesh Aggarwal | last post by:
I developed reports in Crytsal Reports 9.0 in landscape mode. When i print the same from crystal reports it prints perfectly in Landscape even if the printer setting is set to potrait by default. ...
5
5782
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
4
2808
by: Gary | last post by:
Hello, I'm hoping someone can shed some light on why my report does not output the same results as shown in preview mode, which is to move the position of a check box based on a field value (see...
3
2344
by: gerry | last post by:
Since the CrystalReport ReportDocument apparently lacks a PrintToFile option ( doh ! ), does anyone know of any way print a report to a disk file programmatically ? Gerry
1
1397
by: jasone | last post by:
I have various print buttons that allow the database users to print reports, the database has been created so none of the normal access background is showing, just the form. currently when the...
4
1806
by: oldroboman | last post by:
Hi, I have a slighly annoying problem, I am using the below code to print out several reports that are linked by InspectionID field, my problem is that this works ... to a point, if I do preview it...
5
2877
by: totomalas | last post by:
I have developed a report in Access 2007 that runs on three queries, each promting an input from the user...this report is used for a meeting and it should be printed nine times...what I do now is...
3
2631
by: jbrumbau | last post by:
Hello all, I am trying to print values in a report with the following code: Dim IFCChange as Boolean, notFormatted as Boolean ... If notFormatted Then rpt.FontName =...
12
8403
by: Katie Howard | last post by:
Hi - I have a report that's based off a query. The first field in my report is a field from the query that was a combination of 2 different fields (company & state) - looks great in the query, no...
5
14281
by: Yousaf Shah | last post by:
Hello everybody. I am developing database for my patients. I have almost the needed stuff but now struck at report level. At the end of all required data entry, I want to give prescription to my...
0
6899
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
7019
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,...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4757
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2980
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
1288
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 ...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.