How to suppress "(Autonumber)" text

L

Leif

I have a combo field that displays a number from an autonumber field. Before
I create a record the text "(Autonumber)" is displayed in the combo field.
Is there a way to suppress this so that the field is simply blank when no
record has yet been created? Thanks.
 
L

Linq Adams via AccessMonster.com

If you're running ACC2000 or later, use Conditional Formatting for the
Combobox

Condition1

Expression Is IsNull(YourFieldName)

Now set the font/fore color to white
 
L

Linq Adams via AccessMonster.com

I'm sorry, forgot he square brackets:

Expression Is IsNull([YourFieldName])
 
R

Rick Brandt

Leif said:
I have a combo field that displays a number from an autonumber field. Before
I create a record the text "(Autonumber)" is displayed in the combo field.
Is there a way to suppress this so that the field is simply blank when no
record has yet been created? Thanks.

Since AutoNumbers are not user editable, what is the point of using a ComboBox
for the field?

In a TextBox which is probably what you should be using all you need to do is
use an expression...

=[FieldName]

....instead of the field name by itself as your ControlSource and the
"(AutoNumber)" will no longer be displayed.

Using such an expression has the result of making your control non-editable, but
as stated above that is not a concern for an AutoNumber since it is not editable
anyway.
 

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