H
Harald Mæland
Hi,
I have a MS Access 2000 database, with linked tables from a MySQL server.
I'm trying to write a code to encrypt some passwords in a table on the MySQL
machine, using the 'PASSWORD()' function i MySQL..
Code:
SQL = "Update tblUser set passord =PASSWORD(""" & pwd & """) where ID = " &
rid & ""
currentdb.execute SQL
Since the 'PASSWORD()' function is special defined for MySQL, Access are not
able to run this command.
I therefore made a Direct SQL query with the SQL statement.
Question:
How, if possible, can I change the SQL statement within the query upon
executing?
Someone have mentioned using "currentdb.querydefs", but I can't get it to
work..
Anyone?
Greateful for answers,
Harold
I have a MS Access 2000 database, with linked tables from a MySQL server.
I'm trying to write a code to encrypt some passwords in a table on the MySQL
machine, using the 'PASSWORD()' function i MySQL..
Code:
SQL = "Update tblUser set passord =PASSWORD(""" & pwd & """) where ID = " &
rid & ""
currentdb.execute SQL
Since the 'PASSWORD()' function is special defined for MySQL, Access are not
able to run this command.
I therefore made a Direct SQL query with the SQL statement.
Question:
How, if possible, can I change the SQL statement within the query upon
executing?
Someone have mentioned using "currentdb.querydefs", but I can't get it to
work..
Anyone?
Greateful for answers,
Harold