I created a table which primary key is unique number (6 in total), however if I enter for example 000005, it drops the zeros in front. How can fix this?
Thanks
I created a table which primary key is unique number (6 in total), however if I enter for example 000005, it drops the zeros in front. How can fix this?
Thanks
Change the field to a text type or keep the number type field and use Formatting to display with leading zeros.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Sounds like you defined the field type as integer or long integer.
You could change the field type to "Text" and set the field length to 6.
Having said that, PK fields of type TEXt are not really good as a PK field. See: http://www.fmsinc.com/free/newtips/primarykey.asp
I have changed the field type to text.
Thanks