I am using Access 2003

I have various levels of security with in a database and depending on the form, different controls need to be hidden or viewed. since this seems to change on a regular basis I wanted to store the control properties in a table and then apply them when the user logs in.

I do not know how to set the property values to that contained in the recordset.

This is what I currently have:

VB Code:
  1. mysql = "Select * from tbl_SecuritySettings where Security_Level = '" & SecLevel & "' AND Form_Name = '" & frm.Name & "'"
  2.          
  3.     Set rst = CurrentDb.OpenRecordset(mysql)
  4.     Do While Not rst.EOF
  5.    
  6.             For Each ctl In frm
  7.                 If ctl.Name = rst.Fields("Control_Name") Then
  8.                     ctl.rst.Fields("Property_Name") = rst.Fields("Property_Setting") 'This section is the one that is unknown to me
  9.                     Exit For
  10.                 End If
  11.                   MsgBox (ctl.Name)
  12.             Next ctl
  13.        
  14.         rst.MoveNext
  15.     Loop

ANy assistance would be greatly appreciated.