Quote:
Originally Posted by OBP I am not sure why they need this reference number, as the Autonumber does the job as far as the database is concerned.
But as you have the job to do, just add the new Reference Number field to the Data Input Form and then use the equivalent VBA version of your Formula in the First and Last Name Fields After Update Event Procedures.
The VBA Version is
me.referencenumber = Left(me.[FirstName],3) & Left(me.[LastName],3) & me.[ID]
where referencenumber is the actual name of your new field.
It needs to be in both fields in case someone changes either field later.
You can also create an update Query to update any current data. |
I assume its the code builder, option on the afer update event procedure?
Private Sub FirstName_AfterUpdate()
Me.Reference = Left(Me.[FirstName], 3) & Left(Me.[LastName], 3) & Me.[ID]
End Sub
Access spits out some errors, what or where have I goofed up?