22peacocks
New member
- Local time
- Yesterday, 19:08
- Joined
- Apr 2, 2013
- Messages
- 4
Hi
I am trying to find the following when I am trying to add a new record to my database.
The first letter of student surname, the first letter of student forename - this part I have working correctly. What I am stuggling with is trying to find the highest StudentID and increasing the number by one.
I have copied what I have below....
Private Sub StudentID_Click()
If IsNull(Me.StudentID.Value) Then
Me.StudentID.Value = UCase(Left(Me.StudentSurname, 1)) & UCase(Left(Me.StudentForename, 1))
End If
End Sub
Any ideas?
I am trying to find the following when I am trying to add a new record to my database.
The first letter of student surname, the first letter of student forename - this part I have working correctly. What I am stuggling with is trying to find the highest StudentID and increasing the number by one.
I have copied what I have below....
Private Sub StudentID_Click()
If IsNull(Me.StudentID.Value) Then
Me.StudentID.Value = UCase(Left(Me.StudentSurname, 1)) & UCase(Left(Me.StudentForename, 1))
End If
End Sub
Any ideas?