ms-access


Complicated crystal report help - Semicolon in the database field value


i have a database column named Firstname and Categories.
FirstName | Categories
Mike | Blue; Green ; Red
Peter | Green; Red
Paul | Red; Blue
I want to generate a report in this format
**Blue :**
Mike
Paul
**Green:**
Mike
Peter
**Red:**
Peter
Paul
The problem is I cannot change the access database column value, it has to have a semicolon to separate the values. I have over 1000 records and more than 30 categories.
How can i achieve this? I am using crystal reports and I am not a pro user, but I learn stuff easily.

I'd say you're more than likely out of luck. That data is very poorly designed, and there's no easy way to get that data out.
Your options are:
Have the other source send the data in parseable format, and point Crystal Reports to that, or...
Create a new, normalized table in Access, use VBA in Access to crawl your current table and populate the new table, and then point Crystal Reports to the new table.
The downside to option #2 is you may have to have repopulate the new table before running the Crystal Report.

This is easily doable, although with 30 category possibilities it gets ugly. It gets even uglier if the entire name of one category is a substring of another (ex: Green and YellowGreen)
Make a Crystal Report, Select the Database, but chose Add Command rather than dragging over the tables.
insert in the "SQL" like so:
.
SELECT 'Blue' As Category,*
FROM Customers
WHERE Categories LIKE '*Blue*'
UNION ALL
SELECT 'Green' As Category,*
FROM Customers
WHERE Categories LIKE '*Green*'
UNION ALL
SELECT 'Red' As Category,*
FROM Customers
WHERE Categories LIKE '*Red*'
Then under Report > Group Expert .. group by Command.Category


Related Links

Add a record (that does not already exist) to a table from a userform
Access 2010 report invoice total
linked table xxx is unavailable. Microsoft access cannot contact the server
Does this Dlookup have incorrect syntax?
How to combine two fields in Form to one field from Microsoft Access?
Report building from selection in datasheet
Multiple arguments IsNull function MS Access VBA
how to pass parameters to ExportWithFormatting using vbscript
Access 2010 cascading combo boxes runtime error 424
Access Month Calendar View
Shapefile to MDB with custom field structure [duplicate]
Query JET 4 database with SSIS
Microsoft Access 2010: Query Criteria moving
Is there a way to create an Access database from a Visio database model?
Access: insert multiselect box values into database
ms access extra table indexes

Categories

HOME
cakephp
hook
proxy
urbancode
ngrx
google-play
lodash
tizen-web-app
callback
ckeditor
retrofit
acquia
mouse
vifm
tomcat6
numeral.js
jplayer
moonmail
event-handling
decimal
try-catch
clearcase-ucm
dosgi
pugjs
reactcsstransitiongroup
http-status-code-504
text-rendering
nhibernate-envers
google-pagespeed
jprofiler
emulator
autoconf
telerik-reporting
microsoft-r
jndi
p-value
apache-commons-io
ping
media-queries
bcd
nameservers
pdb
asset-pipeline
y86
espeak
dynamics-crm-2013
streamreader
lumberjack
particles.js
s
cubic-spline
wso2carbon
revapi
pubmed
sage-one
bind9
passport-google-oauth
log4c
file-writing
holder.js
moveit
livequery
oauth2client
tarjans-algorithm
map-projections
0xdbe
interrupted-exception
apache-commons-fileupload
remobjects
python-green
titanium-modules
zend-route
android-2.2-froyo
page-layout
farseer
ccss
blending
batterylevel
pushbackinputstream
referrer
typoscript2
bitsharp
broken-links
getmessage
enter
netbeans-6.9
vdsp
cinema-4d
imac
xfbml
remember-me
createwindow
paster
infrastructure
sproutcore-2
getresponsestream
filtered-index
bespin
exchange-server-2003
premature-optimization
putchar





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm