Thanks for your reply.
I was able to create the connection with a username, then delete the username from the database so it does not exist. I then use the following code to submit.
Set oNetwork = CreateObject("WScript.Network")
sUserName = oNetwork.UserName
Password = Inputbox("Password","Ferguson Password","")
strConn = XDocument.DataAdapters("Main connection").connection
strFind = "UID=Ferguson"
strConn = replace(strConn, strFind, "User ID=" & sUserName)
strFind = "PWD=Ferguson"
strConn = replace(strConn, strFind, "PWD=" & Password)
XDocument.DataAdapters("Main connection").connection = strConn
XDocument.DataAdapters("Main connection").Submit
My problem is prompting them for the password when the characters being typed are viewable.
I had also tried submitting without the code with a user that has been deleted from the database, but they get an error box stating that the user does not exist and then a login window - I would be fine with the login window, but the error box has to go. Any suggestions???
Beth