Splitting Reports By Record

Jun 12, 2015

I have a report that contains the details of a large(5000+) number of people, one record per person, 2 pages per record. What I would like to do is develop a VBA/Macro that takes the 2 pages/1 record for one person and saves them in an attachment field on another table. So in effect, splitting the report into lots of single-record smaller ones and saving them in their respective records on a new table. This is for mailing purposes.

View Replies


ADVERTISEMENT

Reports :: Splitting Out Information In A Report

Oct 9, 2014

I need to split out information in a report and I'm not sure how to do it.

The report is based on the following query:

Code:
SELECT tblHazardClass.HazardClass, Product.ProductName, Product.Package, Product.Size,
tblStoreProducts.Cases, Product.Units, Product.ReportUnits, tblStoreInformation.StoreName,
(([tblStoreProducts].[MaxUnits]*[Product].[Size])/[Product].[ConversionRate]) AS QOH, tblStoreProducts.StoreKey
FROM tblStoreInformation INNER JOIN (tblHazardClass INNER JOIN (Product INNER JOIN tblStoreProducts ON Product.UPC = tblStoreProducts.UPC) ON tblHazardClass.HazardKey = Product.HazardKey) ON tblStoreInformation.StoreKey = tblStoreProducts.StoreKey
WHERE (((tblHazardClass.HazardClass)<>"NON-HAZARDOUS"))
ORDER BY tblHazardClass.HazardClass;

My issue is that the products can have a PhysicalState of 'L' (liquid), 'S' (solid) or 'G' (gas). As of right now, only one of the HazardClass entries has multiple physical states (L or S).

My report details each product in the hazard class and totals the amount of that hazard class. Obviously, one cannot add gallons to pounds and come up with an answer that has any meaning whatsoever. How to have the report total the S and the L within a hazard class separately.

Do I do this within the query, or within the report itself? I've already considered making 2 separate Hazard Classes for the one in question (Corrosive). However, since these Hazard Classes are official classifications per the International Fire Code, that's not really an option.

View 1 Replies View Related

Import CSV File From Database PRO To Access: Unusual Record Splitting Problem

Jul 19, 2006

Hello everyone,

I'm trying to import data from our current Database Pro v1.0 DB to an Access DB that I'm creating.

Our DBPRO is essentially a flat-file data entry program. It has a "subform" for history events that isn't actually in it's own table, but all concatenated in a single [History] field.

Basically, when viewed in DBPRO, it's broken into different records, yet it's actually stored as one. DBPRO uses °, ±, □, and 0's to separate the different "fields", but Access can't seem to break it down automatically.

When I export the data to a CSV file, everything else comes through with minimal problems. The [History] field, of course, comes in as a huge block of concatenated records.

I've attached an example of this below. I included only the field in question, ([History]), and the primary key, ([Last Name/Cust]). The first tab in my example is a single record, recently imported. The second tab shows how I need it to be, broken into multiple records.

Is there anyway I can split these records, while maintaining the primary key? It's my goal to have all the other information in one table, and the history records in a separate one.

Thanks so much for your help! I've researched all over, and just can't seem to find a similar problem, or solution. :(

Ben Bolduc

View 9 Replies View Related

Reports :: Splitting Single Field Into Multiple Text Boxes Or Multiline Text Box

Jun 4, 2013

I have a single field in a table called "Client Contact", where users enter a semicolon between the name, address, and city state & zip. My reason for this was so we could copy client info with a single copy and paste (like from an email). But, on the final report, it needs to have these three parts split up into different lines, or even different textboxes. I can't find a way to do that.

View 1 Replies View Related

Reports :: Print Only Report Matching Current Record In Form Among Multiple Reports

Oct 2, 2013

I have been an MS Excel man all along my career and I am a novice in MS Access.I have created a table, [Initial Customer Approval] which records data from a Form, [Initial Customer Approval]. Once the data is entered in the Form, I need to do some calculations based on the data entered in some of the fields in the form.I created 6 different queries for the six possible values in those fields. now for each of those queries I created respective reports.I placed a Print command button in the Form.

1. When I press the Print button it should open the report for the current record in the Form. (Currently It Opens all the reports simulatneously, with only one relevant report containing the current record; other opened reports being blank.)

2. If user presses the Print button before pressing Save button then system should prompt user.

Here is the code (Please note [reference number] is the unique ID generated for each record entered in the tabe through form):

Private bSaveClicked As Boolean
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Not bSaveClicked Then
MsgBox "You are trying to navigate away from the active record. Please either save your changes, or press ESC to cancel your changes.", vbOKOnly + vbInformation
Cancel = True

[code]...

View 5 Replies View Related

Reports :: Open Separate Reports For Each Record In Continuous Form

Aug 19, 2014

I have a continuous form that displays a list of invoices (frmInvoiceList) based on an adjustable filter contained within the form. I have the filters working the way that I want them through VBa and I have a button on each record to open a report (rptInvoice). Inside that report, I have some controls to "print", "email", and "export to PDF". Again all that works just the way I want. The Form and the Report are based on a different query and each has an InvoiceID field to link.

What I am trying to do is put the Print, Email, and Export buttons on the main form which would perform the appropriate action for all the records that are displayed on the form. I've been able to get the Print function to work to a degree. It will print all the records, but it changes the background colors based on the alternating records. When I go to Email or Export, it creates a single file with multiple pages and each page is a new record, again with the alternating background colors.

Ideally, I would like to have a separate file exported for each record that can be renamed and archived separately. I'm not so concerned with the email function but if it would be possible to generate a separate report for each invoice, then pull the appropriate email address for the record, that would be really nice.

I've tried some "for" and "do" loops that I found through some Googling but none of the samples ended up working like I wanted.

View 10 Replies View Related

Reports :: TempVars In Reports Record Source?

Mar 12, 2015

Access 2007 Sub-Report "rptSubEmployeeProject" inside report "rptProgressReportDay".

I need to dynamically change the table in the sub-report's record source. I tried (line wrapped in code tags below for reading purposes)

Code:
SELECT tblProjectHistory_fldProjectID,
FirstOfHistory, [History Date], [Time Spent],
Employee, fldAssigned, TheFieldPriority,
fldTitle, employeeID, fldTimeSpent,
fldStatus, fldHistoryID, fldOrder
FROM " & [TempVars]![TempEmpTempTable] & "
ORDER BY fldOrder;

And I get the error of invalid bracketing of name and it refers to the [TempVars]![Temp part. Makes me believe that I cannot use TempVars in a Reports RecordSource, is that accurate? If So that leaves me trying to set a sub-reports recordsource via vba right?

View 9 Replies View Related

Reports :: Split Reports By Record When Outputting To PDF

Aug 27, 2013

I have a command button that outputs a report to PDF and saves it according to the Name in the NAME_OFF field. However, it saves all the records from the table in each PDF. I need to get each record to save individually.

Here's my code:

Private Sub CreateNotifications_Click()
Dim dbsOfficerMgmt As DAO.Database
Dim rstBoardResults As DAO.Recordset
Dim strName As Field
Dim strBrc As Field
Set dbsOfficerMgmt = CurrentDb

[Code] ......

View 1 Replies View Related

Reports :: View One Record From Master Table And Many Record From Slave Tables

Dec 23, 2013

I have got problem with ms access report. I want to make a report which is based on

1) first master table
2) first slave table
3) second slave table

I have done some research and decided to do some form with subform. So I have got the view one record from master table and many record from slave tables in one view.

But it turned out that it has become duplicate records. (the relationship are ok - it duplicate master record as many as slave records)

So:
1) how i can do ms access report from multiple tables - one master record with multiple records form slaves tables

View 5 Replies View Related

Splitting DB

Nov 3, 2005

Getting ready to split a DB. No security really needed... Only the ability for multiple users needed. From what I have read here so far it seems best to use a MDE file on the front end and MDB file on the back end. One question is still not answered... I guess I will find out when I load the front ends on different stations.. BUT... I would like to know what to expect. I am assuming that each computer that I load the front end on I will have to go through and link the backend. Correct? I read a MS Knowledge base article about a form to do this... Is this only possible if you use the "developers edition" ??? Whats the common method for this task?
Thanks
Curtis

View 1 Replies View Related

Help With Splitting

Jan 3, 2006

I have created an application that uses all the 'normal' factors of an access app. My forms are triggered by events that initiate some vba code which executes and then does something. No big whoop, we are all doing this; but I am going freakin' insane keeping up with changes. The users are using this app in a "live" test enviroment and the changes/updates are coming in quicker than I can type. "This field is not right it should read like this"
Well I can't change it until everyone gets out - they don't like this answer:D

I jumped in before thinking a few versions ahead and did not split the database :eek: I have read a lot of posts here and other sites and I can tell that I need to split this app but am a bit hesitant. From what I can gather I would have a
Front-End - houses all my queries and forms
Back-End - houses all my tables

I have a few modules, where would they need to go so that I can work on them independent of what my users are doing?
I would give each user a copy of the FE or make it available via network drive; would I then keep a seperate copy of my FE to make changes? If yes, does this mean my modules would be in the FE?
Can I split the db now that it has been in live production? What are some common errors that I should look for prior to?
I tried to split the db one time before, but my drop down list box(s) on the forms would not work. They are controlled by a query, not any code. Error msg stated could not find xyz sorry I don't recall the exact error

I need the ability to change, work on and update at will AND NOT effect my users.

View 3 Replies View Related

Print Several Reports Of Same Record

Jun 7, 2005

How do I print several reports of the same record in a row and only prompting once the printer properties?

Thanks in advance.

View 2 Replies View Related

Reports :: One To Many - Count Last Record Only

Aug 15, 2013

I have two tables - one contains customer names, the other customer appointments. So one customer - many appointments.

Each appointment is booked at a set interval (every 3 weeks, 4 weeks, 5 weeks...) which can vary from one appointment to another.

I want to do a count, in a query, to show in a report.

I need to count:

Total Cus_ID by interval - so how many customers are booked every 2 weeks, every 3 weeks, etc.

I need the count to be based on the customer's LAST appointment only.

I have tried, select query (group), crosstab (!)... querying a query... Total line using Max... then Last...

Nothing I tried works. The sum of appointments by interval should equal the total number of clients in the database... It gives me 4 times that... so it is counting every appointment, not just the last appointment entered.

I also will be including two other fields: activecustomer = yes and source = Eve - need to know criteria to set.

View 14 Replies View Related

Reports :: Grouping With Only One Record

Jan 26, 2014

I have a report showing products and their selling prices

Most products have only one selling price, however a few have more than one selling price

To cater for this I have created a group called "Products"

The selling prices are then in the reports' "details" section.

Works well, except that every product now spans 2 lines. One for the product description and another for the price. This doubles the number of pages in the report.

As products with only one price is the norm, is there a method that I can adopt to show products:

* with one selling price - product description and selling price on one line
* with more than one selling price - product description and first selling price on one line, with subsequent selling prices on line below?

View 1 Replies View Related

MDE/Splitting Databases

Jul 14, 2005

Hello,

I have been reading a lot about splitting databases on this forum. I still have some questions.
1) Will the FE (Front End) still show the tables?
2) Will users still be able to edit the forms, reports, etc.?
3) Will my code be hidden
4) Will all the users have up to date data showing when they open the Database?
5) Can more than one person open and input data in the database at the same time?

I also want to make an MDE copy, do I split first or make the MDE and then split?

The whole point is the following: I want the people (maximum 10) that will be using this database to only be able to do enter and view data. They should be able to generate the reports but not create new reports. I only want ONE person to be able to edit the forms, code, and reports. How would I do this.

Your help is much appreciated

View 3 Replies View Related

Splitting A Database

Aug 11, 2005

I am trying to split my database but when i run the database splitter it comes up with the following error messages:

Subscript out of range

And

Invalid procedure call or arguement

Does anyone have any ideas what could be causing these or how to fix it?

Thanks

View 11 Replies View Related

Database Splitting

Sep 10, 2005

Hi
How can I change the location of the back end part, at the moment the front end is looking for the back end at a different location

Cheers
Bikeboardsurf

View 1 Replies View Related

Relations After Splitting

Oct 21, 2005

Hi,

I've split a database and the backend relationships are still intact but the front end they are not and it looks like this is causing a problem. Is this usual?

View 5 Replies View Related

Splitting A Date

Feb 28, 2006

I've currently got a date of birth field in my database, but would like to query on just the birth month.
Can anyone tell me how to do it. Do I have to create another field which separates out the month, and if so, how do I do that.

Any help would be much appreciated.

View 4 Replies View Related

Security + Splitting

Mar 16, 2006

Hi everybody,
I have been spending the last few days trying to find a way through the "access security Maze" which I believe I have just done. I have been following the "Ms Access Security Faq to the letter" and just now, I can open the database via a desktop shortcut including a custom workgroup address and I think everything is working fine. Now, I am trying to organise the next step which is splitting the application.

GHudson stated:
I find it easier to start out with one database that has everything in it
[including the security]. Then I copy the db. Rename them so that one is the
front end, one is the back end. The security will still be in both since they are
exact copies. Then remove the shared tables from the front end, remove
everything else from the back end [except the tables that will be shared].
Then relink the shared tables from the front end to the back end.

Using custom shortcuts will make it easier for the users to open the front
end with the correct workgroup. You can customize the shortcuts target
field with all the required file and workgroup info.

I Understand prtty well what's being said but am getting a bit confused of where and how the different part of the application should be organised on the network:

*The back end file should be on the network drive(drive F)
-That's fine...

*The front end should be distributed only on the station using the application:

1) Does that mean that I could place the FE on the F drive for a short
while and ask the different user to copy the application and past it on their own drive and then delete the FE of the share drive.

2) I will have to use the custom shortcut with the specific work group on each station. Should they all have the same shortcut which would mean that there is only one FE on the F drive and not make much sense or Should the shortcut link to the FE application save on their drive which doesn't make much sense either because they could open the DataBase without the shortcut with their own "default" Workgroup and wouldn't be secure anymore.

I apologize for my confusion and have probably missed a basic step in my reasonning but if anybody could redirect me in the right direction, I would really be gratefull.

View 7 Replies View Related

Create MDE Before Or After Splitting?

May 23, 2006

I setup my security (or lack there of, hehe) and split the database. I relinked the tables.

Now, Access gets hung up when I try to create an MDE of the FE to distribute. It starts the process, asking me to select a folder and file name, I do that, and it gets no further in the process. Access says (not responding).

Should I have created the MDE before I split it? Or does crashing of Access have nothing to do with whether i create the MDE before or after splitting?

View 2 Replies View Related

Splitting Db - Convert Or Not?

Aug 17, 2006

Hi, hope someone here has experience with this issue.

Our system was recently converted to much tighter secured network environment and moved to Office 2003 (still Windows XP).

Within the next couple of weeks we expect to split/secure our new db for shared use across a network (approx. 6-8 users at any one time).

I want to keep the db in 2000 as long as possible because I'm doing lots of the work at home and that's what I have. After deployment there will be lots more changes but in managed releases. (sounds official, eh?...)

Does anyone know of any risks I'm running by keeping it in 2000 within Access2003?

Thanks very much,

View 4 Replies View Related

Splitting A Database

Aug 21, 2006

Hi,

I have been searching for more info on this and found out quite a lot about it; however, I am still wondering how to connect the front ends that will be in different machines to the back end that resides on server.

I know that when you split a database, the wizard asks where to save the first front end. But how about if you have many?

Any help will be very much appreciated.

B

View 3 Replies View Related

Splitting A Number

Sep 7, 2006

Can anyone help me to split a number using an access query to the left and right of the decimal point. I found it in a reference somewhere but have lost it. the number is generated in a query and I need to do something with the fraction

Thanks

View 5 Replies View Related

DB Splitting And ACCDE

Feb 27, 2007

I have 2 questions.

The first is regarding splitting a database into 2 files, one for tables, and one for forms and queries. I have a database whose data will be accessed from about 4 computers, and almost never will this data be accessed concurrently. In that kind of situation, is it easier to just put the whole DB in a share and give each user a shortcut to it, or should I be splitting it and just putting the tables on the share?


Second question:

The option in Access 2007 to make the database an .accde file. From what I understand this just locks down the structure of the database so it can't be changed. Is this correct? Can it be edited by an admin once it's converted to this format, or does it just stay that way? I guess if it can't be edited, one could just keep a copy of the .mdb, modify that, then reconvert it to .accde.

Also, if I were to split my DB, would I first split and then convert to ACCDE, or the opposite?

Can someone enlighten me on these few things?

Thanks

View 11 Replies View Related

Splitting The Database

Mar 14, 2007

i thank all for helping with the issue of mulitple users. after i did the splitthe database using the wizard. i noticed the tables lookes diiferent. but how do i put the front ends for users in their document since am on a thin client enviromemt. or
how do i transfer the front from the end. do i have to write codes??
thanks

View 5 Replies View Related







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