Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2008

Tip: Looking for answers? Try searching our database.

Record with multiple lines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jenniferspnc - 29 May 2008 22:31 GMT
So learning from the help i've gotten previously I've applied it to my
current situation, but now I've run into another road block.  

Here's a sample of my table history (some fields just omitted for sake)
Countries (table)
Country_ID(PK)
Region_ID(FK)
Country
ISO_Code
Support_ID(FK)

tbl_supportdetails
Support_ID(PK)
email address
phone
fax

currencies
Currency_ID(PK)
Currency

tbl_currencybridge
UniqueID (PK)
Currency_ID(FK)
Country_ID(FK)

A country can be invoiced in many currencies and a currency can be tied to
many countries (the many to many relationship).  Here's my problem:  For
example, Albania invoices in USD and Euro which is showing two separate rows.
In my report I'll need it to show all currencies in one line item.  

here is my sql statement (want it to show all countries regardless of
whether or not a currency is tied)
SELECT GlobalZoneTable.Country_ID, GlobalZoneTable.Country,
GlobalZoneTable.[serviced out of], GlobalZoneTable.[email Address],
GlobalZoneTable.[Local Freephone], GlobalZoneTable.[calling from abroad],
GlobalZoneTable.[Local Freefax], GlobalZoneTable.[sending a fax from abroad],
[tbl_currencybridge Query].Currency
FROM GlobalZoneTable LEFT OUTER JOIN [tbl_currencybridge Query] ON
GlobalZoneTable.Country_ID = [tbl_currencybridge Query].Country_ID;

So in my report I create a textbox b/c I want this data all in one field per
country
=([serviced out of])+Chr(13)+Chr(10) & ([email Address]+Chr(13)+Chr(10)) &
([Local Freephone]+Chr(13)+Chr(10)) & ([calling from abroad]+Chr(13)+Chr(10))
& ([Local Freefax]+Chr(13)+Chr(10)) & ([sending a fax from
abroad]+Chr(13)+Chr(10)) & ([Currency]+Chr(13)+Chr(10))
Again it's showing multiple entries for countries that have more than one
currency; whereas ideally it just would list all the currencies on one line
in the report.  

Another workaround i thought was to put the currency textbox in the detail
section and put the above wrapping (minus currency) in the country
header...this results in the currencies being together, but not on the same
line, rather a listing (top to bottom).

Thanks for the help once again.
S.Clark - 30 May 2008 19:01 GMT
I think Duane Hookom's Concatenate function will help you.

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Generic%20Funct
ion%20To%20Concatenate%20Child%20Records
'

Signature

Steve Clark,
Former Access MVP
FMS, Inc
http://www.fmsinc.com/consulting

> So learning from the help i've gotten previously I've applied it to my
> current situation, but now I've run into another road block.  
[quoted text clipped - 53 lines]
>
> Thanks for the help once again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.