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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing sharepoint asking for password in VBA

Status
Not open for further replies.

Niebotel

Programmer
Jan 1, 2007
169
NL
Hello, My backend database (ACCESS 2007) in on a sharepoint (WSS 3.0).
When my application wants to get data from its tables the user is promted for userid and password of the sharepoint.

Is there a way to get the data by putting the user id and password in the VBA some where?
This is an examplke how I retrieve the data:


Set con = CurrentProject.Connection
Set rst = New ADODB.Recordset
rst.Open "[Gebruikers]", con, adOpenStatic, adLockPessimistic

Gebruiker = rst!Gebruiker
Groep = rst!Groep

rst.Close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top