Access 2003 forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am working on a form in Access 2003. There is a text field that when left
blank will display a (0) on the report. Any help will be appreciated. I
don't know if it matters, but the input is a number.

Thanks
 
hp said:
Hello,

I am working on a form in Access 2003. There is a text field that when left
blank will display a (0) on the report. Any help will be appreciated. I
don't know if it matters, but the input is a number.

Thanks


Set the default value as 0 then in VBA statement
If Field.value = 0 then
field.visible = false
else
field.visible = true
end if

K Board
 
I don't think I explained my situation very well. Is this what I would do to
avoid the (0) being displayed. Is this the only way to stop this (0) from
being displayed when nothing is entered. Is there a way to do it within
Access.

Thanks for the help.
 
Check the default property of the field in the table. Access has a nasty
habit of setting the default property of a number type field to 0 and not
telling you about it.

Also check the default property of any controls bound to this field.
Sometimes the control Default property also gets set.

HTH
 
Thanks for the advice Steve. I tried taking a look at the field properties;
but it didn't help. I guess I am going to have to study the VB statements in
order to fix this problem.
 

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

Back
Top