Aouch!
;)
iUserID=strUserID
sUserName=txtUserName.Text
sPassword =txtPassword.Text
sRetypePassword = txtRetypePassword.Text
sEmail = txtEmail.Text
sComments = txtComments.Text
conPubs = New OleDbConnection( "Provider=" & "Microsoft.Jet.OLEDB.4.0;" & _
"Data Source =C:\inetpub\wwwroot\R.mdb" )
strUpdate = "Update tblUsers Set UserName='"& sUserName &"', Password='"& sPassword &"', RetypePassword='"& sRetypePassword &"', Email='"& sEmail &"', Comments='"& sComments &"' Where UserID="& iUserID
conPubs.Open()
cmdUpdate.ExecuteNonQuery()
conPubs.Close()
But somehow I think you're making it wonderfully complicated....
Send the data (Username, Password,...) as parameters to the sub, forget the textboxes and stuff.
HTH
/Kejpa