check for control

S

smk23

IS there a way programmatically to check whether a control is on a form? I
want to do one thing if a control is there, another thing if not.

Thanks so much.

Sam
 
J

Jeff Boyce

Sam

It sounds like you are trying to check for the presence of a control ...
why? Do your forms regularly lose control(s)?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
S

smk23

I was writing a public function that with code I would use with several
forms. Sometimes I want the value returned to the calling code, but other
times the control the return value is for is not on the form. I could put the
control there as invisible, or just write the value directly to the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top