I have recently switched a large database from Informex to Windows SQL and am trying to get all my queries and reports to run correctly.
I have a Query that works with dates:
ptdate: IIf([pickprtdt]=1/1/1980,[trandte],[pickprtdt])
In Informex somehow I had the output formatted as yyyymmdd. In SQL it comes out ad yyyy-mm-dd
I tried:
format(IIf([pickprtdt]=1/1/1980,[trandte],[pickprtdt]),yyyymmdd) and it would not run and it wants to put yyyymmdd in brackets [] - plus I didn't have to use the format command with Informex.
I also tried entering yyyymmdd in the format section of the properties box
I also tied to format the output in the report I run from the query - it won't let me format it
Any suggestions?