If a text box is empty how do I set the field in the table to 99

R

Rick B

Why not just bind the field to the table and leave the field in the table
blank? You can test for blank in your forms and queries just as easily as
you can test for 99.

If you don't want to do that, then include the field that you want in your
form. Add code on the Before Update event of the form that says...

If Is Null(Me.SomeTextField) then
Me.SomeBoundFieldName = "99"
End If



You could make the bound field visible=no if you don't want the user to see
all this.
 
P

pokdbz

Thanks I will do it this way.

How do you do it for radio buttons in a frame? I tried with the
Beforeupdate of the frame but that didn't work.

Any suggestions?
 
P

pokdbz

I figured it out. Thanks again for the help

pokdbz said:
Thanks I will do it this way.

How do you do it for radio buttons in a frame? I tried with the
Beforeupdate of the frame but that didn't work.

Any suggestions?
 

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