Hi all,
I'm trying to get data using such query:
sql = "SELECT a.ShortName, a.ShortDesc, a.ImageFileName, a.ProductID " _
& "FROM tblProducts a, tblProductType b " _
& " WHERE b.ProdTypeID = '43' " _
& " AND a.Hot = 1" _
& " AND CSTR(a.ProdTypeID) = b.ProdTypeID "
The problem is CSTR which is not usable in SQL, does anyone know how to fix that? Thanks!!!
I'm trying to get data using such query:
sql = "SELECT a.ShortName, a.ShortDesc, a.ImageFileName, a.ProductID " _
& "FROM tblProducts a, tblProductType b " _
& " WHERE b.ProdTypeID = '43' " _
& " AND a.Hot = 1" _
& " AND CSTR(a.ProdTypeID) = b.ProdTypeID "
The problem is CSTR which is not usable in SQL, does anyone know how to fix that? Thanks!!!