How to add new user to Access files via code?

Hi
I using VB.Net 2003 with simple SQL commands in my code.
Now my application open the Access database file with no user name or password but i need to add this support to the MDB file so my basic questions re:

1. How can i add via code a new user + his password to the MDB file?
2. How do i open a MDB file that have a user & password? (Now i just use the connection string to connect the MDB file)

Thanks
Have a good weekend.
:wave:
[474 byte] By [leeshadmi] at [2007-11-20 11:42:43]
# 1 Re: How to add new user to Access files via code?
1. I'm not 100% sure but I think you'd have to use ADOX, details of which you can find on MSDN.
2. You specify the user name and password in the connection string; surprise, surprise. See www.connectionstrings.com ( http://www.connectionsstrings.com) for the format.
jmcilhinney at 2007-11-10 3:08:16 >