Hello all,
I have msaccess that I use to insert data into a mysql database on a local in house server.
Now what I would like to do is I have the below query
INSERT INTO User_logins ( GroupWiseID, ConnexLogin, [Password] )
SELECT NewHireIDs.[GW ID], NewHireIDs.[LIC ID], NewHireIDs.[ACD ID]
FROM NewHireIDs;
Basically what it does is insert a staff members groupwise id, username and default password into a mysql table called User_logins the above query works good however now what I want to do is have the query sha1() encrypt the password that it is inserting into the User_Logins table.
I thought the below would work
INSERT INTO User_logins ( GroupWiseID, ConnexLogin, sha1([Password]) )
SELECT NewHireIDs.[GW ID], NewHireIDs.[LIC ID], NewHireIDs.[ACD ID]
FROM NewHireIDs;
but that gives me an unknown function error. So I am looking for suggestions. I was told this might be able to be done in VB but I do not know VB so anyway to do this right in the sql view in mysaccess?
Thanks