T
tmaxwell
I originally posted this as "Help with the WHERE clause", were I was using
two different tables. I really can pull the info needed on our current
customer base with just the one.
I am going to try and explain this as best possible. My database is for
Accounts Receivables. We assign new customers a company number, we have 7
Branches, each Branch has a number range between 00001 thru 9999. At the
moment they are assigned randomly. I need to track numbers used, and numbers
not used. The query I have now does track what is used, but does not include
the full range. I have been trying this with the WHERE clause, but I think
what I'm looking for is an IIF Statement. How can I track what is used
between the 0001 thru 9999 range per BRANCH?
SELECT NAMEADDR.[co-number] AS Branch, NAMEADDR.[cust-number] AS
CustomerNumber, NAMEADDR.[cust-name] AS CustomerName
FROM NAMEADDR
ORDER BY NAMEADDR.[co-number], NAMEADDR.[cust-number];
two different tables. I really can pull the info needed on our current
customer base with just the one.
I am going to try and explain this as best possible. My database is for
Accounts Receivables. We assign new customers a company number, we have 7
Branches, each Branch has a number range between 00001 thru 9999. At the
moment they are assigned randomly. I need to track numbers used, and numbers
not used. The query I have now does track what is used, but does not include
the full range. I have been trying this with the WHERE clause, but I think
what I'm looking for is an IIF Statement. How can I track what is used
between the 0001 thru 9999 range per BRANCH?
SELECT NAMEADDR.[co-number] AS Branch, NAMEADDR.[cust-number] AS
CustomerNumber, NAMEADDR.[cust-name] AS CustomerName
FROM NAMEADDR
ORDER BY NAMEADDR.[co-number], NAMEADDR.[cust-number];