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

Access report with rows with different formats

19
Hi all
I hope someone can help me with this. I am sure there is a solution, but I cannot seem to find it....

I need to make a report with the following format:

In the columns I have 5 samples, so sample 1, sample 2 etc.
In the rows I have different informationtypes for each sample, and the rows have different formats, e.g. Start date (date format), Weight (number with 1 decimal), and other information using different formats like %, number with 4 decimals (even if the decimals are 0) and similar.

And of course I am talking about hundreds of different informationtypes that need to go into the rows for each event..

I have tried several things.
1.
Creating the table much like I want the report to look like and then using a text format and add the value or text into the text field for the sample in the wanted format, but then I cant seem to get the missing decimals in there in case it must be a 4 decimal number, and the actual number is eg. 1,0000. if you have a solution to that issue, that would be the easiest solution I think...

2.
I tried to see if I could make a kind of conditional formatting, so if I set a field value to e.g 2 decimals, then the field in the report would display 2 decimals for that row, however I never managed to find out how to do that, it seems that I can only set things like colors. If there is a way to do this, that could also be an option.

3.
In my desperation, I went into a really complex (for me) "solution" where I tried using different columns for the different formats, so one column for number with no decimals, one for number with 1 decimal, one for text, one for dates etc. but that turned out to be far too difficult when creating the report.... and I did try and work with subreports, and hiding them when there is no data so basically trying to show the rignt number below the right sample, even if it was in a subreport.

However that is proving to be way beyond my skills, so I am hoping you can help me with any of the simpler solutions described under 1 and 2, og suggest a 4th alternative, on how I can get this report done....

Thanks in advance
Best regards
Ingrid
Feb 26 '08 #1
7 2533
Stewart Ross
2,545 Expert Mod 2GB
Hi Ingrid. I think that the formatting issue is masking a deeper problem: the data in your tables is not currently being structured for storage in a relational database. This is very clear when you mention that there are 5 samples in your columns; the first principle of relational database design is to remove any repeating groups of data into separate discrete tables. The data in any row of a relational database must be uniquely determined by the value of the primary key and nothing else - clearly not true for a repeated group.

If the design is not thought through then the presentation issues will simply multiply as you try to cope with tabular but otherwise poorly-structured data which does not lend itself to what the database is good at doing.

In a fully-normalised relational database the table structure reflects an abstraction of the real-world objects being modelled. For example, if sampling data is to be analysed a table called Sample could be created. It would have a primary key such as SampleNumber that uniquely identifies each sample, and there would be a number of definable characteristics of that object such as SampleDate, SampleWeight and so on which together represent the data to be recorded for each unique sample being modelled.

The fields are represented by properties which are chosen from a range of available data types, and these in turn can be presented in a number of different formats. The format chosen does not change how the field is represented internally in the database, only how it is presented to the user.

I suggest you consider what it is you are really asking the database to do. Like another contributor to this forum you may have unwittingly been influenced in designing your tables by the free-form structure of an Excel-type worksheet.

There is an excellent introduction to table design and normalisation in the HowTo section of this forum, at http://www.thescripts.com/forum/thread585228.html. I and other contributors would be glad to help you, but I am sure this runs a lot deeper than the variable formatting issues you mention.

Regards

Stewart
Feb 26 '08 #2
olseni
19
Hi Stewart
Again, thanks for your prompt reply.
However I might have been unclear about my table structure, since the rest of it actually is normalized, so I guess using a report table is not correct, but....

Anyway, to give a bit of more background, the dataI will be comming from around 50 different tables related to individual tests. Each table is structured with samples in rows, and then the relevant information (for that individual test) in the columns - some of them will be entered by the user, and others calculated - and these columns will have different formats. After the data entry, I then need to make a report combining several og the tests, depending on what the customer has ordered.
So basically I need to combine the different information for the samples for the ordered tests into one report, and the report needs to be structured with samples in the columns, displaying 5 at a time, and then the tests and their information types in the rows.

I am thinking I need to have a seperate report table, so I keep "work" data and reportdata apart, and I would then push the reporting data from each of the around 50 test data tables to the total report table.

For the report table I have then tried different options, the one I described, the xls looking table looking like the format of the report basically using text columns, and it would be just to make the report.
The otehr variant I worked with, which is probably more correct is a table structured more like my test data tables, and then pushing the sample id into one column, and the information "title" into another column, and then the individual information values into other columns solely based on their format (column 3 = 0 decimals, column 4 = 1 decimal, column 5 = date etc).

However my actual problem is how to convert that into the wanted report format without the informationvalues from the test data tables looses their original format.

I hope this clarifies.... :-)
Best regards
Ingrid
Feb 27 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
Many thanks for your clarification, Ingrid. I am so glad that you really have a normalised set of tables - at least all we are left with is the technical challenge of presenting the data in the format you require, and not the much tougher one of contending with unstructured tables.

Could you provide a snapshot or sample of the data in the formats you want to present it (suitably anonymised of course)? It would really assist with visualising what you need to achieve. (Attachments can be added to a reply by using the Edit button after sending the reply.) This is where Excel can come in very handy as a means of prototyping the output you require (although the xls format is not one you can attach to your reply).

Regards

Stewart
Feb 27 '08 #4
olseni
19
Hi Stewart
Sure, I am adding a pdf sample of a report page. This example contains only 1 test for 5 samples. however I have added a line with Test 2, just to show where it would need to start. And also there might be more than 5 samples on the report, in which case there would need to be a second section with samples 6-10 and so on untill all samples are covered.
I hope you can understand the text, I translated the important parts to english, as I presume your danish is not so good....:-)
And again thanks a lot for your help, I appreciate it a lot !
Best regards
Ingrid

ok, the file has become quite small, since either it was too big filesize or to wide or whatever....hope you can still get an idea of the layout.
Attached Images
File Type: png reportdata.png (6.8 KB, 392 views)
Feb 27 '08 #5
Stewart Ross
2,545 Expert Mod 2GB
Hi Bridget. Unfortunately, the PNG file is too compressed to make out any detail. Perhaps a plain-text or PDF copy of the contents would work instead?

Regards

Stewart
Feb 28 '08 #6
olseni
19
Hi Bridget. Unfortunately, the PNG file is too compressed to make out any detail. Perhaps a plain-text or PDF copy of the contents would work instead?

Regards

Stewart

Hi Stewart,
Sorry for not responding untill now, I have been busy elsewhere, but am now back and still have the issue, so I hope you can/will still help me. I will try and add another file....
Best regards
Ingrid

Image added, sorry but the limitations of uploads are very limited, so I had to reduce size considerably and flip it 90 degrees, hope it makes sense anyway...
Best regards
Ingrid
Attached Images
File Type: gif report4.gif (10.6 KB, 296 views)
Apr 3 '08 #7
Stewart Ross
2,545 Expert Mod 2GB
Hi Olseni. I have sent a private message (PM) to you in which I have provided my e-mail address so you can attach a copy of your graphic without the size limits for posts in the forum. Unfortunately the thumbnail graphic posted is still too lacking in detail to see what format you require...

-Stewart
Apr 8 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
1
by: STALO YPSARIDOU | last post by:
I have XP Windows on my computer and i use ACCESS 2000. I have build up a small system in ACCESS in order to be used in a clinical laboratory. Using the FAX software provided by the XP Windows I...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
4
by: kpfunf | last post by:
When I email a report via macro or vba code, the attached report is named "Fuel Quote Report.(ext)". I have no idea how this name is used. I have three seperate macros sending three seperate reports....
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.