here is my union query:
SELECT RIMcontracts.[tno], contractors.[Contractor Name], contractors.[Phone Number], RIMcontracts.[Project No], RIMcontracts.[wdate], RIMcontracts.[idate], RIMcontracts.[ndate]
FROM contractors INNER JOIN RIMcontracts ON contractors.[Contractor Name] = RIMcontracts.[Contractor Name]
UNION SELECT WINcontracts.[tno], contractors.[Contractor Name], contractors.[Phone Number], WINcontracts.[Project No], WINcontracts.[wdate], WINcontracts.[idate], WINcontracts.[ndate]
FROM contractors INNER JOIN WINcontracts ON contractors.[Contractor Name] = WINcontracts.[Contractor Name];
my query works fine but for some reason it is cutting off the first 3 letters in my [Project No] field
in my WINcontracts and my RIMcontracts tables the field is enforced with a input mask of "WIN-"0000\->>>AAAAAA and "RIM-"0000\->>>AAAAAA respectively. I'm thinking this is where the problem is coming from, i am not sure. But when i open up the tables it shows the string just fine, with the first 3 letters and all.
So i dont want it to strip those letters off of the field because then i cant tell the contracts apart. anyway around this?
SELECT RIMcontracts.[tno], contractors.[Contractor Name], contractors.[Phone Number], RIMcontracts.[Project No], RIMcontracts.[wdate], RIMcontracts.[idate], RIMcontracts.[ndate]
FROM contractors INNER JOIN RIMcontracts ON contractors.[Contractor Name] = RIMcontracts.[Contractor Name]
UNION SELECT WINcontracts.[tno], contractors.[Contractor Name], contractors.[Phone Number], WINcontracts.[Project No], WINcontracts.[wdate], WINcontracts.[idate], WINcontracts.[ndate]
FROM contractors INNER JOIN WINcontracts ON contractors.[Contractor Name] = WINcontracts.[Contractor Name];
my query works fine but for some reason it is cutting off the first 3 letters in my [Project No] field
in my WINcontracts and my RIMcontracts tables the field is enforced with a input mask of "WIN-"0000\->>>AAAAAA and "RIM-"0000\->>>AAAAAA respectively. I'm thinking this is where the problem is coming from, i am not sure. But when i open up the tables it shows the string just fine, with the first 3 letters and all.
So i dont want it to strip those letters off of the field because then i cant tell the contracts apart. anyway around this?
Last edited: