Ok I dont have a clue whats going on with this, my code is below and the issue is that when I change records my enable/disable options start getting mixed up for some reason!
After a while the fields might grey out even when they should be enabled, also sometimes the spit form will be grey but I can still edit in the top section. I thought it might be a Form.Repaint issue but thats not resolved the issues.
I have no idea whats up, is a split form normally like this with enable/disable? Or is my code not correct?
After a while the fields might grey out even when they should be enabled, also sometimes the spit form will be grey but I can still edit in the top section. I thought it might be a Form.Repaint issue but thats not resolved the issues.
I have no idea whats up, is a split form normally like this with enable/disable? Or is my code not correct?
Code:
Private Sub Form_Current()
Dim tfValue As Boolean
If Me.Qual_Complete.Value = -1 Then
tfValue = False
With Me
.Qual_ConfCall.Enabled = tfValue
.Qual_ConfLetterSent.Enabled = tfValue
.Qual_QAPPSenttoSite.Enabled = tfValue
.Qual_ReminderEmail.Enabled = tfValue
.Qual_QtoQCalls.Enabled = tfValue
.Qual_InspectionDate.Enabled = tfValue
.Qual_CompleteDate.Enabled = tfValue
.Qual_ResponseReceived.Enabled = tfValue
.Qual_ClosureLetter.Enabled = tfValue
End With
Else
tfValue = True
With Me
.Qual_ConfCall.Enabled = tfValue
.Qual_ConfLetterSent.Enabled = tfValue
.Qual_QAPPSenttoSite.Enabled = tfValue
.Qual_ReminderEmail.Enabled = tfValue
.Qual_QtoQCalls.Enabled = tfValue
.Qual_InspectionDate.Enabled = tfValue
.Qual_CompleteDate.Enabled = tfValue
.Qual_ResponseReceived.Enabled = tfValue
.Qual_ClosureLetter.Enabled = tfValue
End With
End If
tfValue = False
Form.Repaint
End Sub