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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to exclude negative currency in query 1

Status
Not open for further replies.

patrichek

MIS
Nov 18, 2003
632
US
Hi Guys,
can you help me figure out how to keep a negative currency out of my query? I've tried
Code:
 not like "(*"
in the trantypetotal1 but it still returns the negative values.

here's my sql:

Code:
SELECT dbo_TranTotalsMaster.TranAccountNumber, dbo_TranTotalsMaster.TranTypeTotal1, dbo_TranTotalsMaster.TranTypeTotal2, dbo_TranTotalsMaster.TranTypeTotal3
FROM dbo_TranTotalsMaster
WHERE (((dbo_TranTotalsMaster.TranAccountNumber)="2928"));
 
sorry i should have stated that negatives show up in parenthesis. ($5950)

thanks!
 
Are you wanting to ONLY SHOW positive values???

SELECT dbo_TranTotalsMaster.TranAccountNumber, dbo_TranTotalsMaster.TranTypeTotal1, dbo_TranTotalsMaster.TranTypeTotal2, dbo_TranTotalsMaster.TranTypeTotal3
FROM dbo_TranTotalsMaster
WHERE (((dbo_TranTotalsMaster.TranAccountNumber)="2928") AND (dbo_TranTotalsMaster.TranTypeTotal1 >=0 ));

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top