Hi all,
I have 7 textboxes on a form, 6 - for data manipulation and another to display how many of those 6 filled out.
The text boxes are called:
txt_name through to txt_name_5
And the display is called:
txt_count
What I am trying to do is create a loop that will count how many of those text boxes aren't null, and then return the value based on that to txt_count.
I have tried a few things like:
I'm probably going about creating this loop wrong. But any help would be appreciated.
I have 7 textboxes on a form, 6 - for data manipulation and another to display how many of those 6 filled out.
The text boxes are called:
txt_name through to txt_name_5
And the display is called:
txt_count
What I am trying to do is create a loop that will count how many of those text boxes aren't null, and then return the value based on that to txt_count.
I have tried a few things like:
PHP:
count = 6
For CountRecords = Me.txt_name to Me.txt_name_5
If Len(count) > 1 then
count = count - 1
End If
Next
Me.txt_count = count
I'm probably going about creating this loop wrong. But any help would be appreciated.