Hi richard I tried to add the code
"Login=user" & Chr(0) & _
"Password=user" & Chr(0) & _
the user has select,update,delete on the database
but I was prompted that it couldn't create the DSN
but win I use trusted connection it could create a DSN but i dont want the user enter the username...