Hi,
I generate a unique ID based on numerous fields.
ID number
first name inital
last name inital
first letter of gender
month and year of death
eg. 1(ID)WB(initials)M(gender)01/10(date of death Jan 2010).
Looks like this 1WBM01/10
Thats great, exactly what I need but what I want also is a "-" inserting after the ID, to seperate the uniqueID.
So I want it to look like: 1-WBM01/10
THe code I have already is this...
In control source of hidden form field:
Anyone know how to get a hyphen (-) after the ID part?
I generate a unique ID based on numerous fields.
ID number
first name inital
last name inital
first letter of gender
month and year of death
eg. 1(ID)WB(initials)M(gender)01/10(date of death Jan 2010).
Looks like this 1WBM01/10
Thats great, exactly what I need but what I want also is a "-" inserting after the ID, to seperate the uniqueID.
So I want it to look like: 1-WBM01/10
THe code I have already is this...
In control source of hidden form field:
Code:
=UCase([ID] & Left([fldFirstName],1) & Left([fldLastName],1) & Left(cboGender.Column(1),1)) & Format(DLookUp("[fldDateDeath]","tbl_DeathsInfo","[recordID]=" & [ID]),"mm/yy")
Anyone know how to get a hyphen (-) after the ID part?