Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2000-10-07 : 13:33:58
|
Ray Mueller writes "I am trying to use the SUM statement in an Access table to determine the numeric sum of a field in a table. My SQL statement does appear to work (no errors) but I can't figure out how to get the value of the sum into a variable. Here is the code I am using:
SQL = "SELECT SUM(YESFIELD) FROM BALLOT" RS.OPEN SQL, PCON, adopenStatic, adLockReadOnly, adCmdText TotalYes = ?????
Any help will be appreciated.
Ray" |
|
|
|
|