G
Guest
How do I determine if a control is displaying "#name?" ?
My front end needs to "turn off" any control that has an invalid control
source, but I can't seem to test an invalid control source until I try to use
the control.
I'd like to test each control in the OnOpen event, and if a bad control
source is detected, then make the field invisible.
I think I just solved my problem....
-- psuedocode start --
on error goto Error_Handler
for each control on the form
debug.print the .value
next
Error_Handler:
If Error 2432 then disable that control; resume
otherwise error report and exit
-- psuedocode end --
I think this will work. Other suggestions welcome.
My front end needs to "turn off" any control that has an invalid control
source, but I can't seem to test an invalid control source until I try to use
the control.
I'd like to test each control in the OnOpen event, and if a bad control
source is detected, then make the field invisible.
I think I just solved my problem....
-- psuedocode start --
on error goto Error_Handler
for each control on the form
debug.print the .value
next
Error_Handler:
If Error 2432 then disable that control; resume
otherwise error report and exit
-- psuedocode end --
I think this will work. Other suggestions welcome.