Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Autonumber

Status
Not open for further replies.

PharmaFun

Programmer
Jul 30, 2003
30
CA
Hi there.

I have a form with an autonumber field in it. Is there a way for that field to be blank on my form until the auto number is there. Right now, it starts off with the text "(AutoNumber)" in there.

Thanks,
PharmaFun
 
If the field will be automatically filled, there is no need to display it at all. Set the visible property to false.
 
Thanks for the reply Wiszh. Yes, it is to be automaticall filled, but I only want the value to be visible once it is atomatically filled. When the form is first opened, it says (AutoNumber) in there. Is there a way to obscure that text message and only show the number once it is generated?

Thanks,
PharmaFun
 
Hi PharmaFun,

Try setting the Control Source property of the text box to the AutoNumber field in your table after the first record in the table is shown in the form. In other words, it should not be associated with the field in your table until there is a real value in there.

natatbh.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top