K
kmo
Guest
How can I run a sql select query from VB. where do i store the results and how can i access or display only the first value of the select query result??
i want to do something like this.
function getPoints(stuActivity as String) As Integer
end function
Please do le me know the correct code to do the above.
i want to do something like this.
function getPoints(stuActivity as String) As Integer
Dim Points As Integer
Points = Docmd Runsql "SELECT Points FROM tblActivity WHERE Activity=stuActivity"
getPoints=Pointsend function
Please do le me know the correct code to do the above.