Is it possible for me to assign a value from a record set to a variable.
The record set has only one record and I need to do some If statements using a field in the record set... Is this possible?
Code:
Dim db As Database
Dim rs As DAO.Recordset
Dim strSQL As String
Dim strUser As String
Set db = CurrentDb
strSQL = "SELECT * FROM tblCurrentUser"
Set rs = db.OpenRecordset(strSQL)
The record set has only one record and I need to do some If statements using a field in the record set... Is this possible?