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
Access VBA DLookup: Syntax error (missing operator) in query expression
MS Access - Speed Issue
MS Access 2016 - Updating Multiple Tables
Concatenated numbers stuck in scientific notation MS Access
ms access for each field
in access how to draw tables on Report and then export it on word
Automatically adding ID number from different table to new entries?
Access VBA Outlook MAPI- Prevent Record Update if email is not sent
data type mismatch error in criteria expression-ms access
Access Main Form 'Enter Parameter Value'
How to get a combobox2 to display records only relating to the selection made in combobox1?
Ms Access: Running an update query
Access Query that brings up decimal amounts
Access 2016 Processes not being killed during Automation but same works for Access 2013/10/07
Unable to use Multivalue field in an exsting Access form
Insert value from textbox into 2 different table ms-access