mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I have the code below that works fine in office 365 however some of my colleagues aint on office 365 and throws a format error issue on the line below
How can i get around it to work on both versions?
DoCmd.RunSQL "UPDATE WFM_AllResults SET Date_ = FORMAT(Date_,'dd/mm/yyyy'),[Datetime] = CDate(CStr([Date_]) & ' ' & Period & ':00')"
I have the code below that works fine in office 365 however some of my colleagues aint on office 365 and throws a format error issue on the line below
How can i get around it to work on both versions?
DoCmd.RunSQL "UPDATE WFM_AllResults SET Date_ = FORMAT(Date_,'dd/mm/yyyy'),[Datetime] = CDate(CStr([Date_]) & ' ' & Period & ':00')"