唯一客户ID [英] Unique Client ID
本文介绍了唯一客户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何从客户的第一个和
姓氏创建一个独特且不可编辑的ID?
例如:SmitJ1 for John Smith >
Matuag
解决方案
Left([LastName],4)&左([FirstName],1)& TryCount
继续在循环中递增TryCount,直到获得唯一ID,然后使用追加查询创建
记录。在您的表单上,将该字段设为只读。
不要将它用作主键,因此当姓氏更改时您可以更改
ID不会更改您的详细记录。
" Matuag" < ma **** @ gmail.com写信息
news:11 ********************** @ u36g2000prd.googlegr oups.com ...
我们如何从客户的第一个和/ b
姓氏创建一个唯一且不可编辑的ID ?
例如:SmitJ1代表John Smith
Matuag
< blockquote> Per Matuag:
>我们如何从客户的第一个和/或姓氏中创建一个独特且不可编辑的ID? />例如:约翰史密斯的SmitJ1
它需要履行什么功能?
-
PeteCresswell
>
需要履行什么功能?
-
PeteCresswell
我只需要它来识别记录。它已经有一个主键
设置。
How can we create a unique and non-editable ID from client''s first and
last name?
eg.: SmitJ1 for John Smith
Matuag
解决方案
Left([LastName],4) & Left([FirstName],1) & TryCount
Keep incrementing TryCount in a loop until you get a unique ID then create
the record with an append query. On your form, make the field read only.
Don''t use it as a primary key, so when the last name changes you can change
the ID without changing your detail records.
"Matuag" <ma****@gmail.comwrote in message
news:11**********************@u36g2000prd.googlegr oups.com...How can we create a unique and non-editable ID from client''s first and
last name?
eg.: SmitJ1 for John Smith
Matuag
Per Matuag:>How can we create a unique and non-editable ID from client''s first and
last name?
eg.: SmitJ1 for John SmithWhat function will it need to fulfill?
--
PeteCresswell
>What function will it need to fulfill?
--
PeteCresswellI just need it to identify the record. It already has a Primary Key
setup.
这篇关于唯一客户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文