Jean-Didier
New member
- Local time
- Today, 11:13
- Joined
- Mar 26, 2010
- Messages
- 8
Hello
I need your help please.
I've a table with [dateretract] as text because the csv file is like that.. (format : 2009-12-01) YYYY-MM-DD.
I have used this code in a query to correct it :
This work fine, but in some records in table, this [dateretract] is empty and i get an #error.
Please can you help me to resolve it to remove #error ? I need this [Dateretract] to be empty if a error occures
Sorry for my very bad english... I'm french
Thank you
I need your help please.
I've a table with [dateretract] as text because the csv file is like that.. (format : 2009-12-01) YYYY-MM-DD.
I have used this code in a query to correct it :
Code:
DateSerial([COLOR=#0000ff]mid[/COLOR]([Dateretract],[COLOR=#cc66cc]1[/COLOR],[COLOR=#cc66cc]4[/COLOR]), [COLOR=#0000ff]mid[/COLOR]([Dateretract],[COLOR=#cc66cc]6[/COLOR],[COLOR=#cc66cc]2[/COLOR]), [COLOR=#0000ff]mid[/COLOR]([TDateretract],[COLOR=#cc66cc]9[/COLOR],[COLOR=#cc66cc]2[/COLOR]))
This work fine, but in some records in table, this [dateretract] is empty and i get an #error.
Please can you help me to resolve it to remove #error ? I need this [Dateretract] to be empty if a error occures
Sorry for my very bad english... I'm french
Thank you