Thanks a lot for your suggestion, I think I've almost got it
Here is what I've got now:
Dim dbs as Database
Dim rdsLocker as recordset
Dim rdsDistMaster as recordset
Set dbs = current db
Set rdsLocker = ("Select Locker from tblLocking"
Set rdsDistMaster = ("Select DistMaster from tblDistMaster"
If rdsLocker.EOF and rdsLocker.BOF Then
rds.Locker.MoveNext
Do While Not rdsLocker.EOF
If fOSUSerName = rdsLocker("Locker"
Then CheckUser = 1
Else CheckUser = 0
Exit Do
End If
Loop
End If
I'm getting an error message that says "End If without block If" and it highlights the End IF after Exit Do.
Any help would be appreciated.
Thanks
Here is what I've got now:
Dim dbs as Database
Dim rdsLocker as recordset
Dim rdsDistMaster as recordset
Set dbs = current db
Set rdsLocker = ("Select Locker from tblLocking"
Set rdsDistMaster = ("Select DistMaster from tblDistMaster"
If rdsLocker.EOF and rdsLocker.BOF Then
rds.Locker.MoveNext
Do While Not rdsLocker.EOF
If fOSUSerName = rdsLocker("Locker"
Else CheckUser = 0
Exit Do
End If
Loop
End If
I'm getting an error message that says "End If without block If" and it highlights the End IF after Exit Do.
Any help would be appreciated.
Thanks