looking up certain tagged textboxes on a form for null/empty

BPBP

Registered User.
Local time
Yesterday, 20:25
Joined
Feb 27, 2009
Messages
64
Hello,

Is there a way to tag certain textboxes on a form?

I'm trying to test for certain null/empty textboxes(tagged) at the beforeupdate event of the form. If they are empty, cancel the update without undoing, then setfocus on the empty field.

A sample code to reference would be great.
Something like a For all controls, do while loop.

Thanks.
BP
 
Code:
  Dim ctl As Control
  For Each ctl In Me.Controls
    'do your thing
  Next ctl
 
Thanks for the reply.

I mean the tagging part. I dunt require all controls to be filled. Just some controls which are tagged.

And also is there a way to tag them(controls, not the underlying table fields)?
 
Sorry, I guess I misunderstood this:

A sample code to reference would be great.
Something like a For all controls, do while loop.
 
I got it to work. THanks All.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom