Clarkie001
IS-IT--Management
Set rs = db.OpenRecordset("SELECT " & strDate & " FROM " & _
Table & " INNER JOIN Temp ON " & Table & "." & CDate(Format(strDate, "dd/mm/yy")) & " = " & CDate(Format("Temp." & strDate, "dd/mm/yy")) & "")
I am using a function to run the above sql. strDate and Table are being returned from the Subroutine which starts this function.
I need to convert strdate because it is a date time.
I am getting a type mismatch with the Inner Join (red). PLease help me to rewrite this last part so it is correctly converted to a date type.
Any help would be much appreciated.
Rgds,
Clarkie
Table & " INNER JOIN Temp ON " & Table & "." & CDate(Format(strDate, "dd/mm/yy")) & " = " & CDate(Format("Temp." & strDate, "dd/mm/yy")) & "")
I am using a function to run the above sql. strDate and Table are being returned from the Subroutine which starts this function.
I need to convert strdate because it is a date time.
I am getting a type mismatch with the Inner Join (red). PLease help me to rewrite this last part so it is correctly converted to a date type.
Any help would be much appreciated.
Rgds,
Clarkie