Hi Randy
Thanks so far but it looks like it is something to do with
the SQL statement
due to the upgrade from MySQL 4 to 5.
Apparently to bring MySQL into line with the SQL 2003
Standard the JOIN
statement has changed, I am scratching my head a little with
the info on
MySQL.com about this.
My SQL code that doesn't work on MySQL 5 is:-
varSQL = "SELECT tblemployeeskills.*,
tblemployees.e_firstname,
tblemployees.e_lastname, tblskillsquals.* "
varSQL = varSQL & "FROM tblemployeeskills, tblskillsquals
"
varSQL = varSQL & "LEFT JOIN tblemployees ON
(tblemployeeskills.es_employee
= tblemployees.e_recid) "
varSQL = varSQL & "WHERE tblemployeeskills.es_sqid = "
&
Replace(rsSkillsResult__param1, "'", "''")
varSQL = varSQL & " AND tblemployees.e_left = 'N' AND
tblskillsquals.sq_recid = " &
Replace(rsSkillsResult__param1, "'", "''")
The change is something to do with how I am joining the
tables but I am
still trying to work out what the issue is.
If you take a look at
http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html
you may be
able to understand it better than me.
Cheers
Bren