L
Legion
Guest
Because I don't want my contractors to work out the number of people placed into accommodation each month (and also maintain my automated tracking system!) I need to insert a Client_ID with all the reports I email out each month. As my Primary key is incremental I cant use it, so I've been forced to create my own Client_ID.......which doesn't work.
This is attached to a BeforeUpdate Event and is supposed to populate my underlining table with the new Client_ID.
Private Sub RandomNo_BeforeUpdate(Cancel As Integer)
[Client_ID] = Left(Trim(Me![FamilyName]), 3) & "-" & Format_(Date, "yy") & "/" & Trim(Str(Me!LASC_Ref))
End Sub
Bonito.
Legion.
Why does the Cheshire Cat grin?.
This is attached to a BeforeUpdate Event and is supposed to populate my underlining table with the new Client_ID.
Private Sub RandomNo_BeforeUpdate(Cancel As Integer)
[Client_ID] = Left(Trim(Me![FamilyName]), 3) & "-" & Format_(Date, "yy") & "/" & Trim(Str(Me!LASC_Ref))
End Sub
Bonito.
Legion.
Why does the Cheshire Cat grin?.