473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Controling Report Printing Positions


Hi Folks, am working on an archiving project which they use a little
format of paper on which they type on it code and descriptions on each
line, and they append on it new lines later on via a
typewriter..........

and since we gonna automate this work am facing a slight prob.....

So my question is can i from access reports control from which position
i want to start printing ???

meaning last time i printed on the paper 2 lines and later on i wanna
print from the third line without reprinting the previous lines ???!!!!
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
1 1948
On 15 Jan 2004 16:39:24 GMT, Joe Saliba <jo*******@hotmail.com> wrote:

Hi Folks, am working on an archiving project which they use a little
format of paper on which they type on it code and descriptions on each
line, and they append on it new lines later on via a
typewriter..........

and since we gonna automate this work am facing a slight prob.....

So my question is can i from access reports control from which position
i want to start printing ???

meaning last time i printed on the paper 2 lines and later on i wanna
print from the third line without reprinting the previous lines ???!!!!
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


I think this will help.

Add a Report Header to your report.
Add an unbound control to the header.
Name it 'SkipControl'.

In the Declarations section of the Report code window write:
Dim intY as Integer
====
Code the Report Header Format event:
[SkipControl] = "Skip"
' The next line is optional if you do not want the report header to
print
Cancel = True
====
Code the Report's Open event:

intY = InputBox("Skip how many lines?","Skip",0)
====
Code the Detail Print event:

If PrintCount <= intY And [SkipControl] = "Skip" Then
Me.NextRecord = False ' Skip the line on sheet
Me.PrintSection = False
Else
[SkipControl] = "No" ' Print
Me.PrintSection = True
Me.NextRecord = True
End If
====
When you run this report, you will be prompted to enter the number of
lines to skip.

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
Nov 12 '05 #2

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

Similar topics

15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
1
by: steven | last post by:
I am creating some financial reports in Access 2000, and I am having problem that I can't resolve. The report sorts information first by vendor, then by budget line number. It generates the...
2
by: Claudia Fong | last post by:
Hi, I have 4 reports created in Ms-access and I will use VB to print those reports. My problem is I'm not sure if I can control wich report to print.. Those reports are almost the same, what...
13
by: salad | last post by:
Hi Guys: I was stuck. I needed to send a report to a file. My beautiful report(s) in Access were going to require loss of formatting with RTFs, a PITA in WordMailMerge, sending it as a text...
13
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
2
by: cranfan | last post by:
I have a report that has fields more than 10 like comp_id comp_name comp_software etc. I want runtime users to edit this report according to their needs.Here is default report but maybe user wants...
3
by: fauxanadu | last post by:
I have a report called rptFilter. In my frmPrint Form, I have four option controls that allow for selection of specific criteria to contol what appears in the report. I also have two text boxes...
1
by: MartinaN | last post by:
Hello, I have a MS Access 2000 question. I created a main report that consists of different subreports in the Detail section. I have a couple of queries that create tables for certain cities (the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.