Format on Primary key

  • Thread starter Thread starter Teo
  • Start date Start date
T

Teo

Hi!!
I have a question regarding format when you add an item into a colum in a
table in access.
I added an Input Mask that puts a CM- before entering any number. But for
some reason after the row is entered the CM dissapears and only the number
remains.
I want the CM- to stay along with the number as I refernce to this number by
it's whole info, for example CM-233 etc instead of 233.

Thanks much for your help in advance,

Teo
 
And if for example my field type is an auto number?
Can I still use the CVA- infront of the number?
I want it to increment automatically as soon as a record is added.

Regards,
Teo
 
You can not do that with Autonumber.

You can have an unbound textbox with record source from a query to pull the
last plus one. Then create an event or macro to put that value in your new
record.
 

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