Link to home
Start Free TrialLog in
Avatar of TomBalla
TomBallaFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of Jared_S
Jared_S

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of vasto
vasto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial