M
markk hhoward
I want to change the format of the date field's look
and the Name field's look on the condition of a check box.
I can get the field's to lock and diable on check = -1
any ideas?
does anyone have a list of the avaliable codes??
ie:Forms!frmPlan![Pre-Con].SetFocus
at the moment I have this code
but I can not unlock the date field on check = 0
nor can I change the look to flat instead of sunken
Private Sub Pre_Con_Analysis_Date_Enter()
If [Completed pre con] = -1 Then
Forms!frmPlanProcessing![Pre-Con Analysis
Comments].SetFocus
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Locked = True
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Enabled = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Locked = True
Forms.frmPlanProcessing.
[Precon_analysis_name].Enabled = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Effect = Flat
ElseIf [Completed pre con] = 0 Then
Forms!frmPlanProcessing![Pre-Con Analysis
Comments].SetFocus
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Locked = False
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Enabled = True
Forms.frmPlanProcessing.
[Precon_analysis_name].Locked = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Enabled = True
End If
End Sub
and the Name field's look on the condition of a check box.
I can get the field's to lock and diable on check = -1
any ideas?
does anyone have a list of the avaliable codes??
ie:Forms!frmPlan![Pre-Con].SetFocus
at the moment I have this code
but I can not unlock the date field on check = 0
nor can I change the look to flat instead of sunken
Private Sub Pre_Con_Analysis_Date_Enter()
If [Completed pre con] = -1 Then
Forms!frmPlanProcessing![Pre-Con Analysis
Comments].SetFocus
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Locked = True
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Enabled = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Locked = True
Forms.frmPlanProcessing.
[Precon_analysis_name].Enabled = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Effect = Flat
ElseIf [Completed pre con] = 0 Then
Forms!frmPlanProcessing![Pre-Con Analysis
Comments].SetFocus
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Locked = False
Forms.frmPlanProcessing.[Pre-Con Analysis
Date].Enabled = True
Forms.frmPlanProcessing.
[Precon_analysis_name].Locked = False
Forms.frmPlanProcessing.
[Precon_analysis_name].Enabled = True
End If
End Sub