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

merging the values of a field in a subreport

1
hello

i am trying to prepare route cards for travels. I am preparing these
route cards in an access reports. the route points, the stops of
travel, has been provided in a routeno-stop table. I am trying to
merge the values for a particular travel. for example, the table is as
follows
route no: stops
1 museum
1 sports centre
1 tennis court
2 zoo
2 city hall
what i want is merging these values as
for 1: museum-sports centre-tennis court
for2 : zoo-city hall
is it possible and how?

i guess that this could be done through custom functions, but only that.
Apr 1 '07 #1
1 1144
MMcCarthy
14,534 Expert Mod 8TB
hello

i am trying to prepare route cards for travels. I am preparing these
route cards in an access reports. the route points, the stops of
travel, has been provided in a routeno-stop table. I am trying to
merge the values for a particular travel. for example, the table is as
follows
route no: stops
1 museum
1 sports centre
1 tennis court
2 zoo
2 city hall
what i want is merging these values as
for 1: museum-sports centre-tennis court
for2 : zoo-city hall
is it possible and how?

i guess that this could be done through custom functions, but only that.
You will need another field called stopno which would be as follows:

route no: stopno : stops
1 1 museum
1 2 sports centre
1 3 tennis court
2 1 zoo
2 2 city hall

Expand|Select|Wrap|Line Numbers
  1. TRANSFORM First([routeno-stops].stops) AS FirstOfstops
  2. SELECT [routeno-stops].[route no]
  3. FROM [routeno-stops]
  4. GROUP BY [routeno-stops].[route no]
  5. PIVOT [routeno-stops].stopno;
Apr 1 '07 #2

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

Similar topics

1
by: Manal/report designer | last post by:
Thank you in advance for any suggestions... I'm using crystal reports version 8 & SQL server. I've created a report that is composed of 2 parts: 1st part contains the mainreport which uses...
2
by: Emmett Power | last post by:
Hi, I have an Access table with a number of records which refer to the same person but with data in different fields. So for example the table would look like this: Name..............Field...
0
by: RJN | last post by:
Hi I have a main report and a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be evaluated after the formula in the main...
0
by: RJN | last post by:
Hi Sorry for posting this message again. I have a main report and a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be...
0
by: rjn | last post by:
Hi I have a main report in which I have inserted a sub report. I have a formula field on the main report and one on the sub report. I want the formula in the subreport to be evaluated after the...
1
by: mrclash | last post by:
Hello, I have a Database in a SQL Server 2000 where I have different users tables with equal fields like this: id (int) email (varchar) name (varchar) address (varchar) joinedon (datetime)
31
by: louishong | last post by:
3rd time posting this as the first two simply disappeared! Here's the issue: We currently run an Access application in the West Coast for tracking resource centric data. For those located in the...
1
by: pdm | last post by:
hoi access, I have a subreport and with the id of inheritance of OOP I like to reuse this subreport in other main reports and hide some fields. First, is this possible and second what is the...
2
by: MLH | last post by:
I have a UNION SELECT query that lists names of people pulled from several different tables. I have a report that prints the first 3 names in a subreport area on main report page 1 and the rest of...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.