Purdue2479
Registered User.
- Local time
- Today, 23:16
- Joined
- Jul 1, 2003
- Messages
- 52
I am trying to update a text field to the following but I keep getting a type mismatch error. I had this in a macro and it ran fine. Once I put it into VBA code window I started getting the type mismatch error. Please help.
Code:
DoCmd.RunSQL "UPDATE tbl_Mas_md_temp SET tbl_Mas_md_temp.[Delete Date] = IIf(tbl_Mas_md_temp.[Delete Date]=' & 00000000 & ',"", " & _
"IIf(tbl_Mas_md_temp.[Delete Date]= "",,Format(Mid(tbl_Mas_md_temp.[Delete Date],1,2) & " / " & Mid( tbl_Mas_md_temp.[Delete Date],3,2) & " / " & Mid(tbl_Mas_md_temp.[Delete Date],5,4),mm/dd/yyyy)))"