Hello Steve, first off I really appreciate you spending the time to help me
out !!
Secondly, Everything runs fine until I get to the FirstField = line and then
I'm still getting the following error code: I'm using Access 2000.
*********
Public Sub splitter()
Dim rst As Recordset
Dim MyField As String
Dim FirstField As String
Dim SecondField As String
Dim ThirdField As String
Dim FourthField As String
Set rst = New ADODB.Recordset
Set rst.ActiveConnection = CurrentProject.Connection
rst.CursorLocation = adUseClient
rst.CursorType = adOpenStatic
rst.LockType = adLockOptimistic
rst.Open "VehicleCosts", , , , adCmdTable
rst.MoveFirst
MyField = rst.Fields("Supplier")
SepChr = Asc(Mid(MyField, 5, 1))
'To get "APlus":
FirstField = Left(MyField, InStr(MyField, SepChr) - 1)
MsgBox FirstField
'I get runtime error 5....invalid call or argument.
'Some part of the call can't be completed. This error
'has the following causes and solutions:
'An argument probably exceeds the range of permitted values.
'For example, the Sin function can only accept values within
'a certain range. Positive arguments less than 2,147,483,648
'are accepted, while 2,147,483,648 generates this error.
'Check the ranges permitted for arguments.
'This error can also occur if an attempt is made to call a
'procedure that isn't valid on the current platform. For example,
'some procedures may only be valid for Microsoft Windows, or for
'the Macintosh, and so on.
'Check platform-specific information about the procedure.
*********