Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Need help with Where Clause

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tmaxwell - 17 Nov 2005 15:22 GMT
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 have not
been able to get the syntax right or I am just looking at it wrong. I will
include my qry. I left off the WHERE because it just was not correct.
Thanks

SELECT ARDetailAging.[co-number] AS Branch,
ARDetailAging.[cust-number] AS CustomerNumber,
ARDetailAging.[divn-number] AS SubBranch,
ARDetailAging.[ref-number],
ARDetailAging.[cust-name] AS CustomerName

FROM ARDetailAging LEFT JOIN NAMEADDR ON (ARDetailAging.[cust-name] =
NAMEADDR.[cust-name]) AND (ARDetailAging.[co-number] = NAMEADDR.[co-number])

ORDER BY ARDetailAging.[co-number], ARDetailAging.[cust-number],
ARDetailAging.[cust-name], ARDetailAging.[cust-number];  
tmaxwell - 17 Nov 2005 20:41 GMT
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?

> 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
[quoted text clipped - 17 lines]
> ORDER BY ARDetailAging.[co-number], ARDetailAging.[cust-number],
> ARDetailAging.[cust-name], ARDetailAging.[cust-number];  
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.