S
sfreeland01
Hi there,
I've recently offered to design a database for a small company. Not
having touched SQL databases for years and years since college, it's
been quite a steep learning curve. One problem has eluded my attempts
to track down a solution on the Internet...
Some background on the database:
I have a Table "ContractIDAndCountry" with a Primary key autonumbered
by Access, and with ContractID and CountryName as fields. These are
populated elsewhere in a data entry Form.
The table for example:
ID ContractID CountryName
1 12 Denmark
2 12 Nepal
3 20 Canada
etc etc
I need to create a CONTRACT AGREEMENT and within it list all the
Countries that a specific contract has assigned to it. I have had
success using both a Query & a Sub-Report to do this, however I need
help formatting the resulting data...
What I'd like to do is instead of having all the countries returned in
a single column, have them left-justified with commas inbetween...
So:
England
Japan
Canada
United States
becomes:
England, Japan, Canada, United States
Ideally the country listing will be contained in a box within the
CONTRACT AGREEMENT.
Again, as stated above I'm a couple newbie in terms of using Access, so
the simpler the better - that being said, I've learned how to follow
instructions very well whilst working on this...
Thanks in advance for any help you can provide.
ps: The closest I have come to solving this was selecting the "page
setup" in the report, and selecting more than one column - this however
isn't ideal as I'd like the commas and the formatting tends to get a
little 'wonky'.
I've recently offered to design a database for a small company. Not
having touched SQL databases for years and years since college, it's
been quite a steep learning curve. One problem has eluded my attempts
to track down a solution on the Internet...
Some background on the database:
I have a Table "ContractIDAndCountry" with a Primary key autonumbered
by Access, and with ContractID and CountryName as fields. These are
populated elsewhere in a data entry Form.
The table for example:
ID ContractID CountryName
1 12 Denmark
2 12 Nepal
3 20 Canada
etc etc
I need to create a CONTRACT AGREEMENT and within it list all the
Countries that a specific contract has assigned to it. I have had
success using both a Query & a Sub-Report to do this, however I need
help formatting the resulting data...
What I'd like to do is instead of having all the countries returned in
a single column, have them left-justified with commas inbetween...
So:
England
Japan
Canada
United States
becomes:
England, Japan, Canada, United States
Ideally the country listing will be contained in a box within the
CONTRACT AGREEMENT.
Again, as stated above I'm a couple newbie in terms of using Access, so
the simpler the better - that being said, I've learned how to follow
instructions very well whilst working on this...
Thanks in advance for any help you can provide.
ps: The closest I have come to solving this was selecting the "page
setup" in the report, and selecting more than one column - this however
isn't ideal as I'd like the commas and the formatting tends to get a
little 'wonky'.