I have a database that is strictly for generating and printing work orders. Our supervisors use it to print new work orders on the fly. normally that is fine. I have the Vb to print that specific work order
what I need to create is a VB that would allow other people to create a work order that would email it to the those supervisors. email addresses will always be the same. I just dont want to send the entire report.
I have small database in ms access which i am using for invoice creation. When invoice is created i save it as PDF. I would like merge another single Page PDF along with the report as 2nd page so end report is 2 page PDF.
Second how can i get 1 PDF from 2 ms access reports.
I have a database of high-school football players, and I am looking to print out single page reports (or forms) that will show detail from several tables and queries. This will act as their resume when they visit schools on recruiting visits. The reason for needing query items, is that I have developed queries that return the most up to date height, weight, 40 time etc., and that single most up to date number is what should print, not the entire table. When I try to build a report it will let me bring in multiple tables, but not queries.
I have many reports that are structured differently, many are grouped by semester.
What I do now, is put a button on each grouping of the report I want to email from and use the current semester (Sem) which is also a query parameter to filter the report.
Here is my current code which works fine:
Sub EmailFromReport(rpt As Report, Optional Sem As Variant) Dim db As Database Dim qry As QueryDef Dim rs As Recordset Dim Bcc As String Dim Subject As String Set db = CurrentDb Set qry = CurrentDb.QueryDefs(rpt.RecordSource) 'set query parameters
[code]....
The problem is, I need to be able to filter these queries on other criteria besides the semester.
My first idea was to use if statements to skip the records I don't want. This is messy and the report structures are different so I run into issues when using optional parameters because not all the reports are structured the same.
The best solution I have come up with so far is using a wherefilter parameter, stripping the semi colon off the querydef sql and surrounding the sql with a qrydef.SQL = "SELECT Email1, Email2 FROM (" qrydef.SQL ") WHERE " & wherefilter.
The problem is this, changes the original query, and I can't figure out how to copy a query with db.CreateQueryDef If i do db.CreateQueryDef("tempqry",qrydefSQL), I lose the query parameters.
Is there a better way to do this? If this is the best way, how do you take an existing query and make a copy of it?
From advice I have read on here I have worked out how to create a button on a form which opens a report to show the values which match the record open on the form. It then attaches that page as a txt file to an email. Which is great.
What I would like it to do though is insert into the body text of the email the text from the report. Have looked as much as I can at the properties of DoCmd.SendObject acSendReport but cannot achieve this myself.
What I have is pretty much this: Code:DoCmd.SendObject acSendReport, "Your matching details this week", acFormatTXT, Me!PersonEmail, , , "Details this week " & Date, "Please see the attached text file for details this week which match your selection criteria.", False
How can I make the text appear within the email body?
My database is stores information about students such as name, student number, programme, email, etc. I have a STUDENT form with this information visible.
I also have a another table and MARKS sub form that contains the details of courses completed by the student and results. I have placed the sub form in the STUDENT form and can see each student's details and a list of their courses.
I want to be able to send this information to the relevant student via email. The student should only receive his information and no one else's.
Can this be done? Do I need to create a report first? Should I be using WORD to produce the emails?
I have a large report that generates information specific to a large list of contacts. I would like to email each contact a .pdf of their part of the report. If possible, I'd like access to run a loop and do this in one button click. I'm not even sure to begin with this.
I've searched high and low on this forum on a step by step on how to do this and everyone's answer is either vague and assumes everyone is an access wizard, or really complex and codey and assumes every one is an access wizard!
I have a "lead sheet database" and I need to add a button on the form which emails just the contents of that current record. My company still handwrites these lead sheets and faxes them to consultants so I'm trying to bring them into the 21st century! An uphill struggle. I'm a code and VB newb by the way.
I've tried sending the form to a report as other posts suggest, but I get an error message about there being too many fields. So I'm stuck. All I need is for each form record to be emailed to a different consultant each day.
(I've had to rar then zip the database file due to size restrictions. I couldn't get the files size down enough by just zipping.)
I'm using Access 2010.My reports are all crowding the left margin, with the reports printed in Landscape being the worst.My Page Setup shows Top and Bottom margins are 0.2 inches, Left is 0.35 and Right is 0.213.
Paper size is 8.5 x 11, in Landscape Mode.
1 column.
Column is 10.4"
I'm getting that error that says that the report is wider than the paper so I may get blank pages, but I don't. It just prints the 6 pages of the report.The Report Property Sheet says the report is 10.5104" and I cannot for the life of me get that to change.
When it prints, there is absolutely no margin on the left side (in landscape mode). When the report renders on the screen, it appears to be perfectly aligned.Reports printed in Portrait mode have extra white space at the top, with the footer being printed right along the bottom edge of the paper.
I have a report that is generating a few pages, but I am only interested in the first page only. I have tried adding in code to cancel everything after the first page, but this just gives me a blank second page:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Cancel = Me.Page > 1 End Sub Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer) Cancel = Me.Page > 1 End Sub Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer) Cancel = Me.Page > 1 End Sub
I am outputting this report to PDF, and it is very annoying to have a blank page.
Is there a way to force the report to only be one page in length.
We recently converted to Access 2010 after using 2000. This problem has suddenly appeared. It doesn't happen on every report but there is one in particular right now and I can't figure it out.The first page of the report is complete but it prints a second page containing only the page header and footer, the rest blank. There are only 2 detail records on the first page and plenty of blank space.
It's not the issue of the page overflowing onto extra pages because the page size bleeds beyond the margins. Everything is safely inside the set margins, and in fact as a test I brought the page width down to 4 inches with .5" margins and it still prints a second page.
I am having a DB and a report is there from query now what i want is ;
if query fields are apple, bat, cat, dog, elephant and I want in report the first three fields like apple, bat, cat to be displayed at first page then remaining on next and so on. Whereas I have a proper report header and footer which I do not want to change for any page means will remain same for all pages..
I have a 14 page report in which I want the footer to appear only on the first page. I accomplish this with some code in the OnFormat event of the page footer:
If Page > 1 Then Me.PageFooter2.Visible = False Else Me.PageFooter2.Visible = True End If
The first page has the footer (great).
The 3rd thru the 14th page does not (great).
The 2nd page also doesn't have the footer - but - it only shows a half page of data! The data continues where it left off on the third page!
So, to sum up:
1st Page: Footer with detail section containing 16 rows of data.
3rd thru 14th Page: No footer section with 28 rows of data.
I have a complicated report in which there is a main report which contains other reports within it. One of these reports (call it "Number Six") within the main report has several subreports. Within this report, I can successfully cancel the subreports so that they do not print if the data does not match the right criteria. I use VBA code to cancel the Number Six report if none of the subreports will be printing. Nothing then appears on this individual report. All I get is a blank page which makes sense since I've shrunk all of the subreports.
When the main report prints, the Number Five report prints, there is a blank page for the Number Six report and then the Number Seven report prints. How do I get the main report to not print that blank page for the Number Six report? When the Number Six report will result in a blank page, I want the Number Five report to print followed by the Number Seven report. I've tried using "No" in the main report for the Enabled option for Number Six but the blank page still shows up. I am not forcing any page breaks either.
I have report &/or form which lists booking availability, basically a list dates & number of spaces. I would like to publish it to my wordpress website somehow, preferably quick & easy, not too much export import etc.
Access 2007.
I know I can export to html just note sure if this is the best way & how I then publish it to my wordpress site or upload via ftp hopefully from within Access.
Thought about google spreadsheet, this can be very easily integrated into Wordpress, html code provided.
How to get data to google? Just not sure how it could all fit together or even possible.
Also this export to html does not format very nicely, just black text so far, my report has colours & background colours (mostly from conditonal formatting)
There are a few wordpress plugins that have calendar availability apps but assume the data in web based (database) and no way to get at this.
I have a report that needs to show about 20 different fields from 24 records. I have it set up in landscape view, with one record per line (running horizontally). It allows me to show about 15 of the fields, spanning two pages (wide). I don't know how to add a third page to show the remaining fields.There are no Groupings.
Also, is there a way to "wrap" text in the column header?
I have a report that's oriented landscape. I have scaled and placed everything to fit on a 11" x 8.5" page (the current dimensions of the report are 10.375" x 7.75"). The Layout view shows that everything fits within the borders.
Despite all of this, Print view insists on including a second, blank page. And since the general user will initially be viewing it in Report view (which doesn't indicate 2 pages), then printing if they so desire, they won't know there's a blank page.If not, I'll just tell people to make sure to only print page 1 in the printer dialog box.
I have an access report that consists of numerous other subreports. My issue is that one last blank page prints at the very end of the report. All margins are sized correctly and have set the 'Force New Page' setting to 'None' for all Group Headings (I should mention that I have each subreport within it's own group heading...so a total of 8 subreports in 8 group headings). The odd thing is that I have the page #'s printing in the page footer and on the last page it's printing page + 1 of x pages (e.g. page 129 of 128). I have removed the report header and footer, but have the same result. None of the other subreports produce an extra page when run separately.
I have a 2 page paper form/report (however you want to categorize it) that I manually have to fill out and submit every month. I am trying to digitize this process using Access but am having difficulties. This paper form is actually pretty simple. The top third of both pages contain just static information like company name, address, phone and etc. The "detail" section of page 2 is basically laid out like a crosstab query. The only data involved in page 1 is grand totals from the crosstab query on page 2, plus an additional calculation.
How to create an Access report in this specific format. I was thinking along the lines of scanning these pages and attaching them as an image in the report and just overlay the data on top of in in the appropriate locations. But this is proving to be difficult as I am getting a whole new page with each new record of data, yet alone was able to figure how to get a different "format" of data on the second page.
Completely recreating the paper form as an Access report is not "impossible" but would prove to be difficult with the limited formatting capabilities of Access reports.
How I could create a report like this that can be printed with 2 different pages. As stated, page 1 is just a total of the data in page 2 so the actual order of the pages laid out on screen or printed is not a big deal.
Any way to repeat the Report Header on every page?
I had my header in the Page Header so that it would repeat on every page, but it did not have the CanShrink option so I put it in the Report Header so it shrinks when I want it to, but now it doesn't repeat. I was hoping there was some kind of code I could implement that would let me repeat the Report Header on every page.
Or is there a way that I could get the CanShrink property in the Page Header?