I have a form that involves a block if statement in the OnPaint event.
The form is set to continuous forms view.
As soon as i placed the code in the onpaint event, the forms that are not the focus keep flickering, if i change the focus the flickering changes, so that those that do not have the focus are always the ones flickering.
It may be possible that I could place the code somewhere else, to achieve what i need, but in the onpaint event is the first time it has worked correctly, minus the flickering.
I have three yes/no fields in the linked table to select gender. The block if (included below) determines which of the fields is selected, and puts a particular value in a text field on the form. I have the fields on the table set to yes/no fields so that i can have a sum for each of the gender options on a report. The text field on the form is not linked to anything.
again, i may be going about this completely backwards.
any and all help is appreciated.
code:
If Me.GenderMale = True Then
Me.Text21 = "Male"
ElseIf Me.GenderFemale = True Then
Me.Text21 = "Female"
ElseIf Me.GenderOther = True Then
Me.Text21 = "Other"
Else
Me.Text21 = "Unknown"
End If
The form is set to continuous forms view.
As soon as i placed the code in the onpaint event, the forms that are not the focus keep flickering, if i change the focus the flickering changes, so that those that do not have the focus are always the ones flickering.
It may be possible that I could place the code somewhere else, to achieve what i need, but in the onpaint event is the first time it has worked correctly, minus the flickering.
I have three yes/no fields in the linked table to select gender. The block if (included below) determines which of the fields is selected, and puts a particular value in a text field on the form. I have the fields on the table set to yes/no fields so that i can have a sum for each of the gender options on a report. The text field on the form is not linked to anything.
again, i may be going about this completely backwards.
any and all help is appreciated.
code:
If Me.GenderMale = True Then
Me.Text21 = "Male"
ElseIf Me.GenderFemale = True Then
Me.Text21 = "Female"
ElseIf Me.GenderOther = True Then
Me.Text21 = "Other"
Else
Me.Text21 = "Unknown"
End If