O
OK
I want to convert a SQL-Server based query to work with an Access Database.
This is the SQL-Server query :
Set rstTrace = RST("SELECT SUM(CASE WHEN DEBET<> 0 THEN
abs(round(geboekt,2)) ELSE 0 END) AS subtotDebet, SUM(CASE WHEN DEBET = 0
THEN abs(round(geboekt,2)) ELSE 0 END) AS subtotCredit FROM tblBookings
.........
Is there a way to convert it such that it would work with both databases?
This is the SQL-Server query :
Set rstTrace = RST("SELECT SUM(CASE WHEN DEBET<> 0 THEN
abs(round(geboekt,2)) ELSE 0 END) AS subtotDebet, SUM(CASE WHEN DEBET = 0
THEN abs(round(geboekt,2)) ELSE 0 END) AS subtotCredit FROM tblBookings
.........
Is there a way to convert it such that it would work with both databases?