Hi,
Anyone know the syntax to trap for an ODBC error. Have a dlookup pointing to an oracle function that is currently not working. As a temporary measure I put a local table in my access 2010 database, but would like to refer to Oracle once the function has been corrected by the dba. I tried:
It still stops on the dlookup pointing to oracle instead of continuing on with the THEN portion.
Anyone know the syntax to trap for an ODBC error. Have a dlookup pointing to an oracle function that is currently not working. As a temporary measure I put a local table in my access 2010 database, but would like to refer to Oracle once the function has been corrected by the dba. I tried:
Code:
if iserror (CDate(DLookup("SPRG_CENSUS", "qrySPRGCensusDate"))) then
dlookup("SPRG_CENSUS","qrySPRGCENSUSDATE_HARDCODE")
else
CDate(DLookup("SPRG_CENSUS", "qrySPRGCensusDate"))
end if
It still stops on the dlookup pointing to oracle instead of continuing on with the THEN portion.