J
jace
I'm new to Access but very fluent in Excel so bare with me on this.
What I have is a query I'm trying to create where I have a Problem
Code(numeric) and a Fix Code(numberic). Each of these codes have a Long
Description in a table just for these codes. However, this table has several
"TABL"'s within it. To get descriptions for a Problem Code the TABL field
must equal "101". To get descriptions for a Fix Code the TABL field must
equal "303". This is a problem because when I write the query I have each
code read out on a row but I can only assign TABL to either 101 or 303 and
Long Description will show up twice with the same description.
This is basically what my query looks like right now:
SELECT C.ACCOUNT, W.PROBCODE, D.LONGDESC, W.FIXCODE, D.LONGDESC
FROM CUSTOMER AS C, WORKORDER AS W, DESCTABLES AS D
WHERE D.TABL = "101"
But instead of getting a Problem Code desctiption and a Fix Code description
I get 2 Problem Code descriptions.
What I have is a query I'm trying to create where I have a Problem
Code(numeric) and a Fix Code(numberic). Each of these codes have a Long
Description in a table just for these codes. However, this table has several
"TABL"'s within it. To get descriptions for a Problem Code the TABL field
must equal "101". To get descriptions for a Fix Code the TABL field must
equal "303". This is a problem because when I write the query I have each
code read out on a row but I can only assign TABL to either 101 or 303 and
Long Description will show up twice with the same description.
This is basically what my query looks like right now:
SELECT C.ACCOUNT, W.PROBCODE, D.LONGDESC, W.FIXCODE, D.LONGDESC
FROM CUSTOMER AS C, WORKORDER AS W, DESCTABLES AS D
WHERE D.TABL = "101"
But instead of getting a Problem Code desctiption and a Fix Code description
I get 2 Problem Code descriptions.