Add this function to a standard module:
Code:
Function GetNumber(ByVal pStr As String) As Long
Dim intLen As Integer
Dim n As Integer
pStr = Trim(pStr) 'removes leading & trending spaces
intLen = Len(pStr) 'stores original length
n = 1 'consider this a counter & position marker
If pStr = "" Or IsNull(pStr) Or intLen = 0 Then Exit Function 'validate we didn't get passed an empty/null string
Do
If IsNumeric(Mid(pStr, n, 1)) Then 'check if that single character is a number
GetNumber = GetNumber & Mid(pStr, n, 1) 'if it is add to existing ones if any
n = n + 1 'add to counter so we know to go to next character on the next pass/loop
Else
n = n + 1 'it wasn't a number, add to counter so we know to skip it
End If
Loop Until intLen = (n - 1) 'go until we processed all characters. The reason we have to do n-1 is that Len starts at 0 & we told n to start at 1
End Function 'if no numbers function will return default value of data type, in our case long would be 0
Then in your query add a calculated field:
FirstAdjNumeric: IIf(InStr([Adjustment],",")>0,GetNumber(Left([Adjustment],InStr([Adjustment],","))),GetNumber([Adjustment]))
Cheers,