How to Create a Custom ID in Access 2010

前端 未结 1 428
醉酒成梦
醉酒成梦 2021-01-25 04:18

The title of this Question may not be accurate because I wasn\'t sure how to ask the question.

Is there A way to have an ID field in AC 2010 the has a constant part and

相关标签:
1条回答
  • 2021-01-25 04:20

    Access has a data type called autonumber which will generate a unique number for each record automatically but it does not allow for the alpha prefix.

    if it is indeed constant then the simplest approach is to prefix with it for display, ie in the table the field would be called recId (for example) and you would view the rows via a query with a calculated column

    EmpId: "EMP" & format$(RecId,"0000")

    0 讨论(0)
提交回复
热议问题