473,511 Members | 16,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Horizontal Report problem

Hi Guru's,
Hopefully I can explain this OK.....What I am trying to do is
create a QC check sheet using the following fields: ASN, PO & Qty. This
information will be at the top of each report with loads of labels
below which users will have as a check list.
1 ASN may have many PO's and the Qty is at PO level so 1 Qty for each PO
I have set it up so far so that a new page is forced for each ASN. On
each page there should be 1 ASN number, however many PO's that belong to
each ASN and the Qty of units for each PO.
The problem I am having is that I can't work out how to get a list of
PO's (horizontal) across the top. If I put the PO in the header, only
the first one will appear. If I put it in the detail section, the list
is vertical and goes down the page rather than across it which wont work for
this report.

Can this be done?

TIA
Mark
Nov 13 '05 #1
4 2588
I'm guessing that from the lack of replies that this is not possible? Could
someone please confirm my suspicions.

Cheers,

Mark

"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:FG***********@newsfe1-gui.ntli.net...
Hi Guru's,
Hopefully I can explain this OK.....What I am trying to do is
create a QC check sheet using the following fields: ASN, PO & Qty. This
information will be at the top of each report with loads of labels
below which users will have as a check list.
1 ASN may have many PO's and the Qty is at PO level so 1 Qty for each PO
I have set it up so far so that a new page is forced for each ASN. On
each page there should be 1 ASN number, however many PO's that belong to
each ASN and the Qty of units for each PO.
The problem I am having is that I can't work out how to get a list of
PO's (horizontal) across the top. If I put the PO in the header, only
the first one will appear. If I put it in the detail section, the list
is vertical and goes down the page rather than across it which wont work for this report.

Can this be done?

TIA
Mark

Nov 13 '05 #2
Ray
"Mark Reed" <ma*********@ntlworld.com> wrote in message news:<FG***********@newsfe1-gui.ntli.net>...
Hi Guru's,
Hopefully I can explain this OK.....What I am trying to do is
create a QC check sheet using the following fields: ASN, PO & Qty. This
information will be at the top of each report with loads of labels
below which users will have as a check list.
1 ASN may have many PO's and the Qty is at PO level so 1 Qty for each PO
I have set it up so far so that a new page is forced for each ASN. On
each page there should be 1 ASN number, however many PO's that belong to
each ASN and the Qty of units for each PO.
The problem I am having is that I can't work out how to get a list of
PO's (horizontal) across the top. If I put the PO in the header, only
the first one will appear. If I put it in the detail section, the list
is vertical and goes down the page rather than across it which wont work for
this report.

Can this be done?

TIA
Mark


Hello Mark,

Perhaps what you could do is set up 2 reports, one is the main report
and the other will be a subreport.

1. Report one: will be the way you have it set up currently.

2. Report two: will be a sub report that is set up like a labels
report with horizontal label sorting, not vertical sorting. Then
add a subreport control to the main report in your detail section.
Set it to can grow: yes and can shrink: yes.

Make sure that the sub report record source has the ASN Number
so that the Child/Parent connection needed for the subreport
control can be linked.

You'll have to play with the subreport control and the subreport
itself to have all data displayed according to your needs.

Hopefully, this will get you started in the right direction. I have
used simular technics like this before and works well.

Regards,

Ray
Nov 13 '05 #3
"Mark Reed" <ma*********@ntlworld.com> wrote in message news:<yU*************@newsfe1-gui.ntli.net>...
I'm guessing that from the lack of replies that this is not possible? Could
someone please confirm my suspicions.


If the subreport method doesn't work you could write a public string
function that when given the ASN opens a recordset to records with
that ASN and builds a string of all the PO's. The function can be
placed in the SQL string like:

GetPOList([ASN]) AS ListOfPOs

and then have a textbox on your Report with a ControlSource:
ListOfPOs. It's slow and not very pretty or even considered good
practice but I have tried this and it seems to work well when the
record count isn't huge.

Here's an example:

tblCustomerPurchases
CustID Long
theDate Date
Brand Text

Public Function GetBrandList(PurchaseDate As Date) As String
Dim MyDB As Database
Dim MyRS As Recordset
Dim strSQL As String
Dim strTemp As String
Dim lngI As Long
Dim lngCount As Long

GetBrandList = ""
strTemp = ""
strSQL = "SELECT Brand FROM tblCustomerPurchases WHERE theDate = #" &
Format(PurchaseDate, "m/d/yy") & "#;"
Set MyDB = CurrentDb
Set MyRS = MyDB.OpenRecordset(strSQL, dbOpenSnapshot)
If MyRS.RecordCount > 0 Then
MyRS.MoveLast
lngCount = MyRS.RecordCount
MyRS.MoveFirst
For lngI = 1 To lngCount
If lngI <> lngCount Then
strTemp = strTemp & MyRS("Brand") & ";"
MyRS.MoveNext
Else
strTemp = strTemp & MyRS("Brand")
End If
Next lngI
End If
MyRS.Close
Set MyRS = Nothing
Set MyDB = Nothing
GetBrandList = strTemp
End Function
Then putting SELECT DISTINCT CustID, theDate, GetBrandList([theDate])
AS BrandList FROM tblCustomerPurchases GROUP BY CustID, theDate; as
the RecordSource of a Report allows me to drag BrandList from the
Field List into the Report Details section along with CustID and
theDate.

James A. Fortune
Nov 13 '05 #4
Hi all,
Thanks very much for your suggestions but I managed to get it working
before I had a change to check for new posts.

I did it by setting the 'vertical' property of all labels and text boxes to
true and building the report on it's side. When it's printed out, it looks
as though it was designed in landscape format. All the titles, etc were
placed in the ASN header with the PO text boxes in the detail section and it
worked a treat.

Hope this info helps other and thanks again,

Mark
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:yU*************@newsfe1-gui.ntli.net...
I'm guessing that from the lack of replies that this is not possible? Could someone please confirm my suspicions.

Cheers,

Mark

"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:FG***********@newsfe1-gui.ntli.net...
Hi Guru's,
Hopefully I can explain this OK.....What I am trying to do is
create a QC check sheet using the following fields: ASN, PO & Qty. This
information will be at the top of each report with loads of labels
below which users will have as a check list.
1 ASN may have many PO's and the Qty is at PO level so 1 Qty for each PO
I have set it up so far so that a new page is forced for each ASN. On
each page there should be 1 ASN number, however many PO's that belong to
each ASN and the Qty of units for each PO.
The problem I am having is that I can't work out how to get a list of
PO's (horizontal) across the top. If I put the PO in the header, only
the first one will appear. If I put it in the detail section, the list
is vertical and goes down the page rather than across it which wont work

for
this report.

Can this be done?

TIA
Mark


Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
395
by: Lloyd Stevens | last post by:
I'm trying to create a report from two queries, one query displays which customers bought a particular product, the quantity and price using the "Enter productID" as parameter While the other is...
4
2792
by: Trevor Best | last post by:
I have a report that's fairly simple, page headers and footers, detail has a subreport in (can vary in length). The customer wanted a signature block for them, their client and 3rd party. This was...
6
2551
by: geronimo_me | last post by:
I have 20 queries that compare fields in one table with fields in another table - the query results are the records that do not match in Table1 and Table2. ie Table1 DOB 28/02/78 Table2 DOB...
2
4927
by: drum2001 | last post by:
I have created a database to be used as a timeclock. The table (TimeClockHistory) contains the following fields: TimeEventID* Employee ClockInDate ClockIn ReasonClockIn ClockOutDate
0
3931
by: Mr. Beck | last post by:
I have a simple application that has a listbox for displaying text in it. The functionality of it is to color particular parts of the text that is displayed from a file. I have used similar coding...
0
1237
by: selimzairi | last post by:
hi to all would any body help please on this cross table report problem yrs header -for years grouping mnt header -for monthes grouping state_id -for states columns 1->30 is for branches id;...
1
1173
by: sushanta | last post by:
Dear sir, In details my problem is: What I want to do: Populate data from database in the crystal report with a specific query What I have done: I have decleared a dataset YWStatus.xsd ...
9
1950
by: Zaher Rabah | last post by:
Hi, Explain: I have a report for reciept list , it contain 3 sub report. 1st for cash and it contain sub total 1 2nd for check and contain sub total 2 3rd for Credit card and contain sub...
2
7683
by: seajays | last post by:
Hi - I've managed to get this site working in Firefox and IE6, without any horizontal scrolling, but for some reason IE7 is insisting on horizontal scrolling by quite a wide margin. Does anyone...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
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...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.