Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Expected: List separator or )

Hi: Can any one please tell me where the syntax error is in that line?
". & vbCrLF & "

intReply = MsgBox("Your document is in My Documents with the name " & strFileName". & vbCrLF & " Do you want to open it now?", vbOkCancel)

Thanks.
Avatar of R_Rajesh
R_Rajesh

Use this:

intReply = MsgBox("Your document is in My Documents with the name " & strFileName & vbCrLf & " Do you want to open it now?", vbOKCancel)
Avatar of mbizup
intReply = MsgBox("Your document is in My Documents with the name " & strFileName & vbCrLf & ".  Do you want to open it now?", vbOKCancel)
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
". & vbCrLF & "


it is the period after the " and before the &

I am assuming it was a typo :-)

Access has no idea of what you are talking about ... it is not a variable, built-in function or constant.