format blank field date field on report in MS Access 2007

My Access 2007 report has a date field.  The string date is in the database as 20110101.  I can successfully format it in the report using:
=Mid$([STOP_DATE],5,2) & "/" & Mid$([STOP_DATE],7,2) & "/" & Mid$([STOP_DATE],3,2)

If the field is blank it gives #error.  What syntax can I use to incorporate the "=Mid$([STOP_DATE],5,2) & "/" & Mid$([STOP_DATE],7,2) & "/" & Mid$([STOP_DATE],3,2)" and something like "If isNull[STOP_DATE] then [STOP_DATE] = ""

Thank you,
LindaOKState
LindaOKSTATEAsked:
Who is Participating?
 
LucasConnect With a Mentor MS Dynamics DeveloperCommented:
Put this in your textbox:

=iif(isnull([stop_date]),null,Mid$([STOP_DATE],5,2) & "/" & Mid$([STOP_DATE],7,2) & "/" & Mid$([STOP_DATE],3,2))
0
 
LindaOKSTATEAuthor Commented:
exactly what I needed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.