Hello all
I have a form that when a regular user opens they have access to submit a "new" case so all fields are unlocked to them. When the regular user does a search for a previous case and the information is displayed the fields are locked to them from edits. There is a group of users that do have access to change any of the fields on the form after the data is submitted.
I do however want to open one field to all the users that is called 'Description'
The code I am using to unlock the form to the authorized group is below, but i cant figure out how to add to it to just unlock the Description field to everyone.
anyone able to help.Code:Private Sub Form_Load() Me.AllowEdits = True If Forms!Login!cboUser.Column(4) < 3 Then Dim ctl As Control On Error Resume Next For Each ctl In Me.Controls If ctl.Tag <> "skip" Then ctl.Locked = True End If Err.Clear Next ctl End If End Sub
Another question is there any examples of creating reports using combobox to select the required data? For example I want to select from the following; "Status", "Date Range" under status there will be 5 options to choose from then under date range i want them to be able to select within last 7 days, 30 days, 4 months, etc and then click on run report and have the report pull that data