Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

complex query for conditions

Status
Not open for further replies.

AstroTek

Programmer
Apr 27, 2004
21
US
the variable condition(s) are:
bpentid= x
bproleid=y
prodbrnd=z
parentbilling=a
billing=b
X,y,z and b are on the same table
A is on the another table
each table has a primary code generated by access
If y=mb
x+y+z=b or x and b
if y=wh
x+y+z=a
if y=DI
x+y+z=a

A has to be looked up on a table to find b billing number
each field
x is an eight digit number
y is a two digit alpha
z is a two digit alpha

I am trying to put the conditions into one two or three queries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top