B
Ben
Hi everyone,
I'm trying to do a string comparsion with the retrieve
records using DAO and I'm stuck.
Here is the code:
Dim db As DAO.Database
Dim user As DAO.Recordset
Dim strstring As String
dim tnum AS integer
user = " Mike"
tnum = DCount("UserName", "User")
strstring = "SELECT UserName FROM User"
Set db = CurrentDb()
Set rstuser = db.OpenRecordset("User")
If Not rstuser.BOF And Not rstuser.EOF Then
** At this point, I'm stuck. What do I need to do so that
I can compare the user name(mention above) to the retrieve
records. If the user name does not match, it display a
message box and exit.
End If
Any help is appreciate,
Ben
I'm trying to do a string comparsion with the retrieve
records using DAO and I'm stuck.
Here is the code:
Dim db As DAO.Database
Dim user As DAO.Recordset
Dim strstring As String
dim tnum AS integer
user = " Mike"
tnum = DCount("UserName", "User")
strstring = "SELECT UserName FROM User"
Set db = CurrentDb()
Set rstuser = db.OpenRecordset("User")
If Not rstuser.BOF And Not rstuser.EOF Then
** At this point, I'm stuck. What do I need to do so that
I can compare the user name(mention above) to the retrieve
records. If the user name does not match, it display a
message box and exit.
End If
Any help is appreciate,
Ben