Printing A Table

Jul 25, 2006

Hi,
I have a form with some fields on it.. it's a subform. It has multiple rows. Is there any way I can print the rows as in a report. I Dont know how to pass the subforum values from the form to the printer? I tried the print table macro but it prints the whole table data and not just the data in the subform

anyone offer any help on this?
thanks
Craig.

View Replies


ADVERTISEMENT

Modules & VBA :: Printing Code Slowing Down Printing Reports?

Feb 25, 2014

I was having trouble just setting each report with a particular print method - for some reason they just kept forgetting their individual settings and resorting to default on the machine.

This meant reports were printing on the wrong paper, or the wrong size paper, the wrong orientation and some times refusing to print if it couldn't find the paper (which is useful in runtime as it doesn't display error messages)

So I used Reports(rpt).printer properties (I forgot where I found this) to hard code the printer properties into each print command... this meant I had to use another function to insert the variables.

So all I had to do was say:

Code:
PrintMe("Invoice","InvoiceID",iID)

and a report would print to exactly how I wanted... but it's just too slow!

See attached for full code, I have a niggling feeling it may be the function: PrinterOK, to make sure the printer exists or not.

Code:
Function PrinterOK(sPrinterName As String) As Boolean
Dim MyPrinter As Printer
PrinterOK = False
For Each MyPrinter In Printers
If MyPrinter.DeviceName = sPrinterName Then
PrinterOK = True
Exit Function
End If
Next
End Function

I know it's the printing code, because if I stop the printing and just preview then it shows up almost instantly.

View 1 Replies View Related

Printing A Table Structure

Mar 15, 2007

Is there any way to print an Access table structure?

Robert

View 2 Replies View Related

Printing Table Fields

Sep 18, 2007

Is there a way to print out the field names in a table? Not the data, just the field names.

Thanks,
Jeff

View 2 Replies View Related

Printing Form From Table

Dec 10, 2005

Hello all- New here and working with a database for my boss. I did not create this rather am modifying it. I have a table (vehs) that contains information for three different departments regarding their vehicles. This database also has a form that prints (when clicked once) all of this data to the local printer. I need to make three sub forms to print similarly but just by department number (in other words only department 1's vehicle data) I'm not too big an access guru so if I need to supply any more data please let me know

Thanks,

John

View 11 Replies View Related

Reports :: Tax Info - Calculations Do Not Appear In The Table For Printing

Apr 4, 2013

I am entering tax information that requires calculations into a form.

The calculations are visible and perfect on the form but do not appear in the table for printing.

A - should the calculations be created for each field in the report
B - should the calculations be entered into a Form/Query

View 3 Replies View Related

Select Fields Of Table To Use When Printing Mailing Labels

Jan 2, 2008

I have a table that contains a lot of different information regarding to mailing.

There are columns for Name, Address, Address2, Address 3, City, State, Zip, Country, Base Name, etc.

Some units will only required parts of the above information. I'm using the Name as an identifier in the DB only and Address is the beginning of content that I want to use.

My issue stems out of the fact that the City, State, and Country are not always required but the Base Name, may be used in lieu of the City.

I was looking at making checkboxes next to each of the columns on the form on the field and then using those checkboxes somehow to create a report for Mailing Labels.

I'm just not sure how to set this up.

View 5 Replies View Related

Reports :: Printing Lines Vertical And Horizontal In A Report Like Table In Word Document

Sep 12, 2013

I need to replicate an existing report that has a number of 3 columns across the page and has 35-40 rows down the page...it's like a table in Word or a spreadsheet in Excel. I need to print the column and row lines.

Is there a simple way to include these in the report other than me drawing each and every line?

View 2 Replies View Related

Queries :: Cartesian Table - Create Multiple Copies Of A Record To Use For Printing Labels

Aug 5, 2013

I am using a cartesian query to create multiple copies of a record to use for printing labels.

Here's my query that produces the cartesian result:

SELECT tblCount.CountID, tblDeliveryOrders.DeliveryOrderNum, CurrentCY.Deliveryorderlineitemnum, CurrentCY.Quant, CurrentCY.UOM1, tblContainerSizeCodes.SizeCode, tblContainerTypeCodes.TypeCode, CurrentCY.WasteDescription, tblEtidDodaac.EtidDodaac, CurrentCY.ETIDDocNum, CurrentCY.Pounds, tblEPAWasteCodes.[EPAWasteCodes(1B)]

[Code] ....

This works just fine in creating the desired result - EXCEPT I don't get all the records.

When I remove the 'cartesian table', and right join everything, then I get the correct results. If I keep everything as-is and reintroduce the cartesian table, then I get an error about there being an ambiguous outer join.

View 3 Replies View Related

No Changes After Printing

Nov 14, 2005

My database is a Reservations System. I want the following to happen:

1. Once a booking has been made it CAN be modified and cancelled.

2. Once the ticket has been issued (printed) it CANNOT be modified.

3. Once reprinted the words "DUPLICATE" should appear on the face of the reprinted ticket

4. Keep track of who made what changes.

View 3 Replies View Related

Printing Sub-Form

Apr 12, 2006

i have a search form with a sub form displaying the results, how can i send the results to a report to print out or just print the results?:confused:

View 5 Replies View Related

Printing From Access

Jul 25, 2005

Hello,
I have one machine that gets this error when trying to print or e-mail a report:
the microsoft jet database engine could
not find the object

Any other machine can print from this db.
Access 2003. XP Pro, SP2.

View 7 Replies View Related

Reports- Printing

Nov 29, 2005

Hey all, I have a problem I was hoping that someone could help me with. I am trying to add my digital signature to my report. Since I have added an activeX Control to my form which display and stores my signauture, I would like to display it on my report as well (if it apperas with the record) So I added it like any other control to the report but when it is saved it is letters and numbers, so I have to make it back into a digital signature. Can anyone help me.Thanks

View 4 Replies View Related

Printing Dependancies

Sep 13, 2006

I just started using A2003 and find the Dependancies feature very useful. However, I can't figure how to print them other than by doing screen shots. Is there any way to print the dependancies?

View 3 Replies View Related

Printing Problem

Jun 4, 2007

When i go into print preview on all my existing forms the information is displayed over the 'x' amount of pages it covers. I have created a new form and when i go into print preview it only displays a blank page.

Any help would be very appreiciated, thank you.

Matt

View 1 Replies View Related

Printing Problem

Aug 22, 2007

hello,

I have a form which has a "Printing Button" The printing button has to print (through a macro) a report that I created based on the form's information. Now, it works perfect on the PC I work on (which has ACCESS 2007), but it gives me an error when hitting the same button from a PC using the runtime version (with no ACCESS 2007 installed).

The error is:
The command or action 'Print' isn't available now.


The code of the macro that executes when hitting the button is:

SelectObject Report, PersonalUncompleted Tasks, Yes
RunCommand Print

How would I fix this?

Thank you very much

View 1 Replies View Related

Printing Querie

Jul 20, 2006

How Come When I Change The Page Setup To Landscape In A Querrie..
Then Hit File Save...when I Close And Reopen This Querrie And Go To Print Preview It Is Still In Portrait Mode

View 2 Replies View Related

Printing Options

Feb 28, 2005

Hi,
How do i create an option inside the form, such that when the user ticks this option, it will print the form in this particular report. If user ticks another option, it will print the form in another particular report format... Thanks...

View 1 Replies View Related

Printing Records

May 7, 2005

If you have a Print button on your form where you add records, can you set a specific font and background colour when you print or does it have to be the same as what's on your form? I have a red background on my form but I want to print just the text and in black and white.

View 4 Replies View Related

Printing Only The Subform...

Feb 16, 2006

Could anyone give some assist on how to print only the subform in a form. I'm looking to create a print preview command button that will allow only the sub form to be printed... Thanks for the assist.....

View 6 Replies View Related

Form Not Printing Anything

Apr 26, 2006

I have a form with multiple subforms. When I hit print selected record I get a blank sheet of paper. What could be set to not allow the data or the background of the form to print?

If I just print the subform out by itsself it works good. However when I have the main form open then try to print I get blank pages.

I am sure someone changed a fairly small setting, but I do not know what has been changed. Thanks.

View 1 Replies View Related

Updating After Printing

May 9, 2006

I have a command button that brings up a report on my form. After the report comes up and the users has viewed it and printed it, I want a message box to come up saying "Are you done with the report." But when I set up the message box it comes up right after the report comes up. And the user is force to make a decision before its able to do anything.
Is there a way to insert something in VB between the DoCmd.Open Report and my message box to tell the message box, wait until the user has hit the print button?

View 1 Replies View Related

Printing A Form

Aug 9, 2006

:eek: When I go to print the form, it repeats the detail section over and over. Instead of being one page, it is 1414. How can I fix this problem? Thanks

View 4 Replies View Related

Printing From A Subform?

Jan 2, 2007

I have my subform on my main form and when I press the print button that I created it prints the main form 200 times due to the amout of records in the table.

When I open the subform by its self then press the print button that I created it will print what I want, the subform only.
Please help!! I want to print this subform from the main form.

Thanks,

View 1 Replies View Related

Printing In Access

Nov 18, 2004

Hi

Anyone who can help me out?


I have a report in access.
I have designed the report such that. When a user wants to print
there is a prompt for the user to enter the order number.The report displays
all the orders for that order number.A number is assigned for that print out.This
number is unique for every order number the user enters.

How do i capture the generated print out NUMBER, store it in a table so that when
there is another printing for the same order number No NEW PRINT OUT NUMBER is
displayed.The user should also be prompted that he/she is printing an already printed orders.
However in case of a new order number, the generated print out number should be differnt which
should also be stored for future refencing.

Please help

View 3 Replies View Related

Problems With Printing

Dec 15, 2004

I have what is hopefully a quick question. I am writing a simple program for my credit union to generate the paperwork for mortgages. Everything works with one small exception. Ther are two documents (actually Word Templates) that need to print on the front and back side. The credir union has an HP Laserjet 4P with a duplexing unit.

What I need to know is how to send commands to cause the duplex printing. Do you know how to do this or can you point me in the right direction on how to find this answer. I am including the relevant code for this section below, which works perfectly in every other aspect, just can't figure out how to get it to duplex.

Thanks,
Phil Reames
Kalamazoo, MI

MergeDoc = "c:MortgagedocsNote.dot"

Wrd.Documents.Add MergeDoc
Wrd.Visible = True

With Wrd.ActiveDocument.Bookmarks
.Item("Date1").Range.Text = MonthLgl(Forms![editform]![Mortgage_Date])
.Item("Date5").Range.Text = DayLgl(Forms![editform]![Mortgage_Date])
.Item("Date6").Range.Text = YearLgl(Forms![editform]![Mortgage_Date])
.Item("City").Range.Text = Forms![editform]![City]
.Item("State").Range.Text = Forms![editform]![ST]
.Item("Address").Range.Text = Addressvar
.Item("MortAmt").Range.Text = FormatCurrency(Round(MortAmtVar, 2), 2)
.Item("Int").Range.Text = Forms![editform]![Interest_Rate] * 100
.Item("Date2").Range.Text = MonthLgl(Forms![editform]![Mortgage_Date])
.Item("Date3").Range.Text = DayLgl(Forms![editform]![Mortgage_Date])
.Item("Date4").Range.Text = YearLgl(Forms![editform]![Mortgage_Date])
.Item("MortPay").Range.Text = FormatCurrency(Round(PaymentVar, 2), 2)
.Item("Date7").Range.Text = MonthLgl(Forms![editform]![First_Payment_Date])
.Item("Date8").Range.Text = DayLgl(Forms![editform]![First_Payment_Date])
.Item("Date9").Range.Text = YearLgl(Forms![editform]![First_Payment_Date])
.Item("Balloon").Range.Text = Round(BalloonVar, 2)
.Item("Date10").Range.Text = MonthLgl(Forms![editform]![Maturity_Date])
.Item("Date11").Range.Text = DayLgl(Forms![editform]![Maturity_Date])
.Item("Date12").Range.Text = YearLgl(Forms![editform]![Maturity_Date])
.Item("Date13").Range.Text = MonthLgl(Forms![editform]![Maturity_Date])
.Item("Date14").Range.Text = DayLgl(Forms![editform]![Maturity_Date])
.Item("Date15").Range.Text = YearLgl(Forms![editform]![Maturity_Date])
.Item("Date16").Range.Text = MonthLgl(Forms![editform]![Maturity_Date])
.Item("Date17").Range.Text = DayLgl(Forms![editform]![Maturity_Date])
.Item("Date18").Range.Text = YearLgl(Forms![editform]![Maturity_Date])
.Item("Applicant").Range.Text = Borrow1Var
.Item("CoApp").Range.Text = Borrow2Var

End With

Wrd.ActiveDocument.PrintOut

Wrd.ActiveDocument.Close wdDoNotSaveChanges

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved