Hi,
I think it is missing bracket causing the problem.Try this
sql = "INSERT INTO Users(user_name,password) VALUES (" & to_sql(user_name, "text") & "," & to_sql(password, "text") & ")"
Mainly after the "Values(" the bracket is not closed. Since the compiler could not find the end of...