I have a piece of code that I use to find values that enable fields on a form. Here is an excerpt of the code:
Set rst = [domain groups]
strSearchName = Str(Me!Manager)
rst.FindFirst "Manager = " & strSearchName
Group = rst.[Group]
Me!Group.Enabled = True
The problem is that I want to take the value stored in the Group field of the Recordset from the FindFirst instruction. I am getting an error on the Group = rst.[Group] line. What is the proper syntax to extract only the value from the specific field in the recordset?
Thanks
Jeff
Set rst = [domain groups]
strSearchName = Str(Me!Manager)
rst.FindFirst "Manager = " & strSearchName
Group = rst.[Group]
Me!Group.Enabled = True
The problem is that I want to take the value stored in the Group field of the Recordset from the FindFirst instruction. I am getting an error on the Group = rst.[Group] line. What is the proper syntax to extract only the value from the specific field in the recordset?
Thanks
Jeff