I have been researchin this issue all morning.
I am getting this error on some code I'm trying to run:
Compile error: expected sub, function or property
What does the error message mean?
It highlights a field I am refrencing but the field name is correct?
This is the code and I have typed in red the part the error refers to:
Sub DriversAvailable2()
Dim mydb As Database
Dim myset As Recordset
Dim strList As String
Set mydv = CurrentDb()
Set myset = mydb.OpenRecordset("qryDriversAvailable")
strList = "This is a list of available drivers: " & vbCrLf
myset.MoveFirst
Do While Not myset.EOF
strList -strList & myset![FullName] & vbCrLf
myset.MoveNext
Loop
MsgBox strList
End Sub
Thank you for any help and direction in advance!!!!