472,960 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,960 software developers and data experts.

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 2546
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.