Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access XP and System.MDW

Status
Not open for further replies.

JeffCarlin

Programmer
Aug 16, 2001
33
0
0
US
When adding a new user under Access97, the following code always worked:
Code:
    Dim NewUser As User
    Dim NewWorkspace As Workspace
    Set NewWorkspace = DBEngine.Workspaces(0)
    Set NewUser = NewWorkspace.CreateUser(txtUserName, txtPID, txtPassword1)
    NewWorkspace.Users.Append NewUser
    NewWorkspace.Users.Refresh

Now, since changing to XP, it errors out on the "Set NewUser" line. Anyone have a better way of adding users?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top