M
margaret
So I have the following query ...
SELECT Code.CODE, year.yearend, [account information].ACCOUNT, [account
information].MINOR, [account information].minor1, [account
information].Supplemental, [lybbal]+[lytot] AS lastytot, year.LYEAR,
year.Byear, year.Ayear, [account information].acctname, [account
information].MAJOR, [cybbal]+[cytot] AS currentytot
FROM [year], Code INNER JOIN [account information] ON Code.MINOR = [account
information].MINOR
WHERE (((Code.CODE)=17 Or (Code.CODE)=18 Or (Code.CODE)=19 Or (Code.CODE)=20
Or (Code.CODE)=22)) OR ((([account information].ACCOUNT)="005150900"));
I need it to select only the codes 17, 18, 19 or 20 and also select on the
account number 005150900. However, it's not selecting the account number.
Is there some other way that I need to write this?
SELECT Code.CODE, year.yearend, [account information].ACCOUNT, [account
information].MINOR, [account information].minor1, [account
information].Supplemental, [lybbal]+[lytot] AS lastytot, year.LYEAR,
year.Byear, year.Ayear, [account information].acctname, [account
information].MAJOR, [cybbal]+[cytot] AS currentytot
FROM [year], Code INNER JOIN [account information] ON Code.MINOR = [account
information].MINOR
WHERE (((Code.CODE)=17 Or (Code.CODE)=18 Or (Code.CODE)=19 Or (Code.CODE)=20
Or (Code.CODE)=22)) OR ((([account information].ACCOUNT)="005150900"));
I need it to select only the codes 17, 18, 19 or 20 and also select on the
account number 005150900. However, it's not selecting the account number.
Is there some other way that I need to write this?