Faster than DCount with checkbox control
I have a field in a table, value was entered by someone else (not me) as either "pdnnnn" or "nnnn", showing whether a person paid or not.
What's a quick way to parse that field for a check control on a form? For instance, I could use:
If DCount("field", "table", "field alike 'pd%') > 0 Then
Me.Checkthing.Value = True
Else
Me.Checkthing.Value = False
End If
But, it's my understanding that DCounts are rather slow. Is there a better way to do this?
I have a field in a table, value was entered by someone else (not me) as either "pdnnnn" or "nnnn", showing whether a person paid or not.
What's a quick way to parse that field for a check control on a form? For instance, I could use:
If DCount("field", "table", "field alike 'pd%') > 0 Then
Me.Checkthing.Value = True
Else
Me.Checkthing.Value = False
End If
But, it's my understanding that DCounts are rather slow. Is there a better way to do this?
Last edited: