Avatar of TomBalla
TomBalla
Flag for United States of America asked on

compare two fields slightly different

Ok, in one table I have the route numbers 03, 04, 05, 06 and so on.  In the other table those route start with a 1 so it would be 103, 104, 105, 106 and so on.  How would I set it up so that 03 would recognize 103 as the same driver?
Crystal Reports

Avatar of undefined
Last Comment
Jared_S

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jared_S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kurt Reinhardt

One other possible suggestion is you bring the data from one table into the report and write a formula against it so that it matches the format of the field from the other table.  Then, use the other table in a subreport and link the main and sub from the formula to the field in the subreport.  Please note, you generally only want to do this with a subeport in a group, page or report header/footer - not in a detail section, if you can help it.
SOLUTION
vasto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Mike McCracken

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
TomBalla

ASKER
I am getting this error now

The data types varchar and char are incompatible in the '&' operator.

How do I fix that?  I'm using
ON '1' & INVW.Warehouse COLLATE DATABASE_DEFAULT = BTWarehouseHistory.RouteNo COLLATE DATABASE_DEFAULT
SOLUTION
Jared_S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes