473,394 Members | 1,893 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,394 software developers and data experts.

print current form?

sea
I need to be able to print the current form because the form has an
embedded object of a .gif file, so report will not work -- does anyone
know the way to do this? I tried some code, not sure what it was now,
guess docmd.printout or something but that prints ALL the forms --
also the each page of the form does not always start at the next page
even if allowcontinuousforms is set to no. The preview button previews
all the forms as well, depending on the number of records in the
database! So to sum up what I need is code for the following:

1. print preview form for currently viewed record only
2. print form for currently viewed record
3. some way to force each form page to print and preview on a separate
sheet of paper.

Thank you very much -- any help will be greatly appreciated - am using
Access 2003.
Nov 13 '05 #1
3 11837
Why not just filter the form to the current record based on its RecordID
(autonumber)

A better suggestion would be to copy the layout into a report and use on the
report on the OnOpen Event

docmd.filterOn = true
Me.Filter = [forms]![formname].Form.Filter

Then the report will print everything that you have selected on the form.
Just base the recordsource of the Report to be the same as the recordsource
for the Form

HTH
Paul
sea" <se*****@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I need to be able to print the current form because the form has an
embedded object of a .gif file, so report will not work -- does anyone
know the way to do this? I tried some code, not sure what it was now,
guess docmd.printout or something but that prints ALL the forms --
also the each page of the form does not always start at the next page
even if allowcontinuousforms is set to no. The preview button previews
all the forms as well, depending on the number of records in the
database! So to sum up what I need is code for the following:

1. print preview form for currently viewed record only
2. print form for currently viewed record
3. some way to force each form page to print and preview on a separate
sheet of paper.

Thank you very much -- any help will be greatly appreciated - am using
Access 2003.

Nov 13 '05 #2
Look at this....

http://files.bdmco.com/PrintScreen.mdb
"sea" <se*****@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I need to be able to print the current form because the form has an
embedded object of a .gif file, so report will not work -- does anyone
know the way to do this? I tried some code, not sure what it was now,
guess docmd.printout or something but that prints ALL the forms --
also the each page of the form does not always start at the next page
even if allowcontinuousforms is set to no. The preview button previews
all the forms as well, depending on the number of records in the
database! So to sum up what I need is code for the following:

1. print preview form for currently viewed record only
2. print form for currently viewed record
3. some way to force each form page to print and preview on a separate
sheet of paper.

Thank you very much -- any help will be greatly appreciated - am using
Access 2003.

Nov 13 '05 #3
Ahhh,

Now I understand. Look into a way of using the OnOpen Event to set the size
of the form for printing purposes.
Maybe the MoveSize command or some other like it.

HTH
Paul

"miTch" <mi******@nospam.topsideinc.com> wrote in message
news:1099668976.kTNSlxVkDbmjwkZ9wpXLgw@teranews...
Look at this....

http://files.bdmco.com/PrintScreen.mdb
"sea" <se*****@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I need to be able to print the current form because the form has an
embedded object of a .gif file, so report will not work -- does anyone
know the way to do this? I tried some code, not sure what it was now,
guess docmd.printout or something but that prints ALL the forms --
also the each page of the form does not always start at the next page
even if allowcontinuousforms is set to no. The preview button previews
all the forms as well, depending on the number of records in the
database! So to sum up what I need is code for the following:

1. print preview form for currently viewed record only
2. print form for currently viewed record
3. some way to force each form page to print and preview on a separate
sheet of paper.

Thank you very much -- any help will be greatly appreciated - am using
Access 2003.


Nov 13 '05 #4

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

Similar topics

6
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo...
1
by: Aftershock | last post by:
I have looked on the groups but can't seem to find an answer. I have a parameter query that uses a form for its input. This form then opens up a search result form based on the query. It is from...
2
by: laurence chang | last post by:
How can I add a print link or button to print current page instead of going to file print? Thanks ahead. Laurence *** Sent via Developersdex http://www.developersdex.com ***
5
by: Dino M. Buljubasic | last post by:
I'd like to be able to print my form or some controls on it. I have found lots of references for this but they all talk about printing a text document from a form. Any help will be appreciated...
2
by: MLH | last post by:
Suppose that code running on FormB is moving the focus around on FormA to various textbox controls on FormA - Which form is the current form during this process? Is it FormA, which has the...
4
by: Deano | last post by:
I'm in the situation of having to print a form - not a report. This will fit nicely in a landscape format but by default it prints portrait. Is there any code to make it play nice?
4
by: Robson Felix | last post by:
It may sound like a silly question, but I would like to print a form or component from within Visual Studio when designing such form component. Is that possible?
6
by: dotnetnovice | last post by:
Hi everybody. I need some help in c# forms problem which is i have three forms naming main form,form1 & form2. main form is the mdiparent of both form1 and form2. i also have a toolstrip in my...
7
by: RG360 | last post by:
Hello. I am new in Access and I need assistance from Pro's I have a data entry form from 2 main tables and they have relationships with other tables. My main table only contains Field ID's,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.