I'm trying to use the Left function to copy the first character of a column into a new column.
In design view I add a new column to the table, and select calculated, which brings up the expression builder where I enter
Left( [ladnm] , 1 )
ladnm in the name of the column im trying to extract the first character from, hence 1.
Initially I was getting the error message 'Cannot change a rule while the rules for this table are in use'
But I have been messing about with it for so long, its now givng me the error 'Filesharing lock count exceeded. Increase MaxLocksPerFile registry entry'
Started looking this up and found myself in regedit - seems excessive for the problem I started with....
Can anyone help?
If you want to do it you will need to do it in a query or in a form based on this table.
InitialsSearch: Left([FirstName],1) & "." & Left([LastName],1) & "."
If you add this as a collumn in a query it works good.
In a form you can connect to the event afterupdate from the column where the information was entered. In my example it looks like:
Private Sub LastName_AfterUpdate() Me.Initials = Left(Me.FirstName.Value, 1)End Sub