I'm transferring an excel spreadsheet into a simple access database......I need to make calculations on table entries.
I want all the calculations done in queries.
I entered this excel IF statement to an SQL expression using WHERE instead of IF and [INVAMT] as field K3
(It calculates a charge based on the invoice amount, so K3 = $51, then $0.00; K3 = $201 then $2.00)
=IF(K3<50,0,IF(K3<201,2,IF(K3<601,4,IF(K3<1001,6,I F(K3<2501,15,IF(K3<5001,30,IF(K3<10001,60,IF(K3<25 001,90,120))))))))
So I named it OC:, with the show box unchecked
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.