[英]access: autonumber field but not parallel with primary key
I'm creating a customer help form (for reporting computer support) 我正在创建一个客户帮助表(用于报告计算机支持)
After inserting a Customer in the database, a number should be generated like: WO: 00001 在数据库中插入客户后,应生成一个数字,如:WO:00001
The number should be unique, because when the same Customer has another job, it should be for example: WO: 00012 assuming there were a few clients before him. 该数字应该是唯一的,因为当同一位客户有另一份工作时,它应该是:例如:WO:00012,假设他之前有几个客户。
What should I do? 我该怎么办?
Just use an autonumber
integer field. 只需使用autonumber
整数字段。 You can append the WO
and add the leading zeros in your select or at render time. 您可以追加WO
并在选择时或渲染时添加前导零。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.