Hi.
I'm not sure where to put in the NZ function here. I'm trying to convert dates written as 20160917 to mm/dd/yyyy and use this function in a query: Formatted Date: CDate(Mid([Date Last Sold],5,2) & "/" & Right([Date Last Sold],2) & "/" & Left([Date Last Sold],4)).
The problem is that if there are no dates in the [Date Last Sold] column, it will return a #error.
I believe that if i put in an nz somewhere it will return a 0 instead.
If you can help me do this, I would really appreciate it.
Also, I might want to put in 1/1/1900 instead of 0. Can you please show me both options?
Thanks.
I'm not sure where to put in the NZ function here. I'm trying to convert dates written as 20160917 to mm/dd/yyyy and use this function in a query: Formatted Date: CDate(Mid([Date Last Sold],5,2) & "/" & Right([Date Last Sold],2) & "/" & Left([Date Last Sold],4)).
The problem is that if there are no dates in the [Date Last Sold] column, it will return a #error.
I believe that if i put in an nz somewhere it will return a 0 instead.
If you can help me do this, I would really appreciate it.
Also, I might want to put in 1/1/1900 instead of 0. Can you please show me both options?
Thanks.