yes i have been trying to solve this issue for a while. I can't find the solution. here is the issue.
I have a main form. The primary key is a tracking number. When this number is entered it fills in both the day and date fields on the spreadsheet.
I have several subforms. Different processes run during different days. IE process 2 has 2 reports that only run on tuesday and friday. If it is not tuesday or friday i want these check boxes to be disabled.
This is the code I have for the sub form in the On Current block.
however when the date on the main form reads Sunday the check box is still active and i can still click on it. i want this to be disabled. if i can get this down i can modify it for the other reports as well. However i have been unable to do so. This is very aggravating and i don't know why it is not disabling itself.
Spare_Processing (Main Form)
Day (well the day of the week)
Mega_Form (sub form)
win_load (checkbox).
Private Sub Mega_Form_OnCurrent()
If Me![Spare_Processing]![Day] = "Tuesday" Or Me![Spare_Processing]![Day] = "Friday" Then
Me!Mega_Form.Form!win_load.Enabled = True
Else
Me!Mega_Form.Form!win_load.Enabled = False
End If
End Sub
I have a main form. The primary key is a tracking number. When this number is entered it fills in both the day and date fields on the spreadsheet.
I have several subforms. Different processes run during different days. IE process 2 has 2 reports that only run on tuesday and friday. If it is not tuesday or friday i want these check boxes to be disabled.
This is the code I have for the sub form in the On Current block.
however when the date on the main form reads Sunday the check box is still active and i can still click on it. i want this to be disabled. if i can get this down i can modify it for the other reports as well. However i have been unable to do so. This is very aggravating and i don't know why it is not disabling itself.
Spare_Processing (Main Form)
Day (well the day of the week)
Mega_Form (sub form)
win_load (checkbox).
Private Sub Mega_Form_OnCurrent()
If Me![Spare_Processing]![Day] = "Tuesday" Or Me![Spare_Processing]![Day] = "Friday" Then
Me!Mega_Form.Form!win_load.Enabled = True
Else
Me!Mega_Form.Form!win_load.Enabled = False
End If
End Sub