A
alex
Check for spaces
Hi,
Using Access ’03…
I have some code behind a Form that checks the value of several
unbound text/combo boxes.
If the control = Null or “” then the code doesn’t run (pretty simple).
My problem, however, is that my code will run (allow) when a user
simply enters a space(s) (hitting spacebar once or multiple times).
How can I avoid this?
The code I referenced is mostly SQL code, so when I DIM the variables,
I usually set them to zls to avoid invalid use of null errors; e.g.,:
nz(myUnboundControl,””). But I need the code to be smart enough to
ignore nulls, zls, or spaces.
Any Thoughts?
Thanks,
alex
Hi,
Using Access ’03…
I have some code behind a Form that checks the value of several
unbound text/combo boxes.
If the control = Null or “” then the code doesn’t run (pretty simple).
My problem, however, is that my code will run (allow) when a user
simply enters a space(s) (hitting spacebar once or multiple times).
How can I avoid this?
The code I referenced is mostly SQL code, so when I DIM the variables,
I usually set them to zls to avoid invalid use of null errors; e.g.,:
nz(myUnboundControl,””). But I need the code to be smart enough to
ignore nulls, zls, or spaces.
Any Thoughts?
Thanks,
alex