The following is VBA you can test in a form. Maybe test behind a temporary control like a Command Button.
Code:
Dim str As String
str = "15-0001234"
str = Mid(str, InStrRev(str, "-") + 1)
What you have done here
Code:
Private Sub Form_Load()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("T_FI_LOG")
SeqNo = Right(Val([Log_SeqNo]), 7)
'txtLogNum = SeqNo
End Sub
Is going to get you nowhere fast.
You need to parse a number from your text field. I suggest you start with that first. You can accomplish it within a Query Object. Create a query using the Query Designer, click "Query Design" from under the Design tab.
If you add your table to the Query Design Window, you can, then, add the desired fields to the grid at the bottom of the Design Window. You can create an alias for a field by adding the alias name and follow it with a colon. MyAlias:
Here is an alias with an expression that parses characters from a text field.
MyAlias: Mid([FieldName], InStrRev([FieldName], "-") + 1)
You need to put the correct field name in the red text areas.