Brother,
You can do this by creating a function {eg. "Public Function Encrypt(details as string) as string }, inside a module or the form itself. Then write the code for the encryption inside this function.. Then, call this function before saving the data into the database...
like the below on:
dim name, address as string
name=Encrypt( "NewName")
address= Encrypt( "NewAddress")
cn1.execute
"INSERT INTO client_details(name,address) VALUES('" & cus_name & "','" & addy & "')"
And for decrypting, create another function and type the code for decrypting the data (eg. Public Function Decrypt(details as string) as string )
'''''''''''''
I think this will help you... [:) ]
Enter your message below
Sign in or Join us (it's free).