'Polymorphic version for integer
Public Function SetSqlUpdateStatmt(RS As ADODB.Recordset, _
strTableToUpdate As String, _
strFieldToUpdate As String, _
intDataToInsert As integer, _
strFieldToBeUsedInWhereStatement) As String
If IsNull(RS) Then
MsgBox "The recordset was not initializes. (Function SetSqlUpdateStatmt)"
Else
SetSqlUpdateStatmt = "UPDATE " & strTableToUpdate & " SET " & strFieldToUpdate & _
" = " & intDataToInsert & " WHERE " & strFieldToBeUsedInWhereStatement & " = " & _
RS(strFieldToBeUsedInWhereStatement)
End If
End Function