D
Dave R.
Hi. I am working on a form which I am trying to setup some code on. The idea
is to check the fields for being complete and to write any incomplete field
names (e.g. var1, var2) to an unbounded text box (qcbox).
I know that one way to do it is:
If Isnull(Var1) then
QCBox = "Var1"
End if
If Isnull (Var2) then
QCBox = QCBox & " Var2"
.... and so on.
There must be a quicker way, but I am not sure how. Is it possible to put a
list of all variable names (there are around 30) into the code, then use a
"For" statement to run the above code that loops through and checks all of
them?
By the way I know I can use validation for this, but the form should not
actually REQUIRE anything; I just want this feature so that I am aware of
what is blank, and so forth.
Thanks for any help.
is to check the fields for being complete and to write any incomplete field
names (e.g. var1, var2) to an unbounded text box (qcbox).
I know that one way to do it is:
If Isnull(Var1) then
QCBox = "Var1"
End if
If Isnull (Var2) then
QCBox = QCBox & " Var2"
.... and so on.
There must be a quicker way, but I am not sure how. Is it possible to put a
list of all variable names (there are around 30) into the code, then use a
"For" statement to run the above code that loops through and checks all of
them?
By the way I know I can use validation for this, but the form should not
actually REQUIRE anything; I just want this feature so that I am aware of
what is blank, and so forth.
Thanks for any help.