473,385 Members | 2,004 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.

Report in Horizontal format

Hi Folks,
I need some help, I have Sales table,SalesRep1 table,productdetail table. Based on these three tables I made a query salesquery where I got the output as required.
In Sales table there are 20 fields such as storeno,Productno,agentno,month,Tot_sales etc etc.
Salesrep1table consist of fields such as storeno,storename,city,productname.
Fields of Productdetail tables are Productno., productname,size.
Now I have combined these tables in a query and got the output as Storeno,Storename,city,month,productno,productname ,Tot_sales.

eg:-1, Abc Store, xyz,11,111, P1, 50
2, Bcd Store, asd, 11,112,P2, 90.

My Problem is I want to display the data or report in Horizontal format.
i.e I want to create a report as
Storeno, Storename, city, month, P1, P2, P3...........................P20 Tot_sales

Eg:-

Storeno Storename City Month P1 P2 P3 P4 Tot_sales
1 ABC yyy 11 50 50 10 10 120
2 BCD zzz 11 10 20 12 40 82
3 SSD xxx 11 20 2 33 20 75
4 AAD sss 11 55 32 50 20 157
5 BBD ddd 11 40 30 40 40 150


I don't know how do I display it in horizontal fomat so that it fits in one page

instead of 20 pages.

Please help me out.
your help will be much appreciated.
Thanks
Jul 16 '07 #1
2 3206
kepston
97 Expert
The usual methods to increase what you can print include:
  1. Page setup - landscape
  2. Page setup - reduce margins
  3. Text box Format - reduce font size
  4. Report Wizard - Adjust field width so all fields fit on a page
  5. Reduce space between fields
  6. Reduce field widths to show only data and no space
  7. Change number format

Alternatively, consider changing report format
StoreNo, Store Name, ...
P1,P2,P3,....

or
StoreNo 1 2 3 ...
Store Name xyz uvw rst
P1 10 10 20
P2 20 20 30
P3 50 10 40
.
.
.
Jul 19 '07 #2
missinglinq
3,532 Expert 2GB
After doing the steps that kepston has pointed out, when dealing with a report where you just have to have everything on one line, I set up a dummy record, with each of the fields holding the maximum number of characters as defined in the underlying table(s) to insure that the field widths, as defined in the report, are adequet. Unless I'm using a monospace font (which I detest) I'll use all capital Ms with the final character being a capital W. These are the two widest characters in most non-monospace font sets; the different character at the end allows you to know that the field is wide enough to display all data without having to actually count the characters.

Good Luck and Welcome to TheScripts!

Linq ;0)>
Jul 19 '07 #3

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

Similar topics

7
by: aagarcia | last post by:
My sum from my a report footer total at the end of a report is off by a penny! The data totals coming from query are correct. Only the calculations (=Sum()doesn't add the penny. I've tried...
1
by: Joe Saliba | last post by:
Hi Folks, am working on an archiving project which they use a little format of paper on which they type on it code and descriptions on each line, and they append on it new lines later on via a...
0
by: Thierry Lefevre | last post by:
Hi, I have a printing problem with a crystal report. In fact, I have defined by default on my default printer a specific paper format (8,5" x 5,5"). The report was created with this printer...
0
by: Bill Nguyen | last post by:
Please forgive me for cross posting. I hope I can get the answer from either NG. I was able to export a CR report to PDF to MAPI (using Outlook client) , but not with HTML format from a .NET...
1
by: Susan Bricker | last post by:
Greetings. I have a report (actually all of my reports in an MDB) that I want to date/time stamp at the bottom. Previously, I had used the builtin function of Now(). I thought that would give...
0
by: teju | last post by:
Hello, I am trying to retrieve data from the sql and trying to display using ASP. If a I try to print in the normal rows and columns format, it seems to print okie. But if i want to ptint in...
1
by: RamyaKarri | last post by:
i get the output of the query as Jan 0.1 Feb 1 MAR 2 .. I Want to view data in the following format Jan Feb Mar
0
by: akmaRudiliyn | last post by:
Hi..i am newbie and student in programming,so need help from expert. Here is what i want to do. 1-I want to create Report System/Reporting System. 2-User must choose database and enter username...
1
by: bullfrog83 | last post by:
I have a form that contains parameters for a report. After the user clicks Preview I have code that set's the Where clause for the report's record source. Once the report opens I close the parameter...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...

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.