LastName:
Birthdate:
KeyField:
KeyField: LastName + Birthdate [
Yes, that is correct. You can create mulitple "multi-key" kields if you want.
LastName:
Birthdate:
KeyField1:
KeyField1: LastName + #Str(Birthdate)
KeyField2: @Mid(Birthdate,3,2) + LastName
--------------------------
Also remember to make KeyField ReadOnly and check for unique value after creating Keyfield. Something like this:
var vOK as Int
vOK = @XLookup(@FN, ThisElement, LEName, LEName)
IF NOT @Error THEN {
@MsgBox("This is not a unique Key Value!", "", "")
ThrowFocus(ThisElement)
}
---------------------------------------------
Thanks for pointing out my syntax error on earlier posting. Sorry for any confusion. I have corrected it in the original posting. Double check the syntax here also, don't have access to Sesame right now......