Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Authentication Error???

 
   Database Forums (Home) -> Visual Basic -> DAO RSS
Next:  The SUM question  
Author Message
Mike

External


Since: Aug 10, 2005
Posts: 1



(Msg. 1) Posted: Sat Aug 13, 2005 5:55 am
Post subject: Authentication Error???
Archived from groups: microsoft>public>vb>database>dao (more info?)

Ok so heres the code.. for some reason I kept getting the no
permissions message, so I attempted to add the access workgroup file.
Now I
get the "Authentication Failed" message. This is a secure database.
HELP.. I know I'm writing (adding) something wrong... The user i'm
using is a valid user in the workgroup associated with the DB.


THanks


CODE FOLLOWS.


Private Function CallJetDB(strMDB As String) As Boolean
Dim SecFile As String
Dim creaobj As Object
SecFile = DLookup("VCIRSecfile", "tbldbpaths")
Set creaobj = CreateObject("ADODB.Connection­")
With creaobj


.ConnectionString = "Provider=Microsoft.Jet.OLEDB.­4.0;Jet
OLEDB:System Database=" & SecFile & "User ID=Viewer;Password=12345" _
& "Data Source=" & strMDB & "; Mode=Share Deny None;"
.Open
CallJetDB = (cnn.Properties("Jet OLEDB:Engine Type") = 5)
End With
ExitHere:
creaobj.Close
Set creaobj = Nothing
Exit Function
End With
End Function

 >> Stay informed about: Authentication Error??? 
Back to top
Login to vote
Douglas J. Steele

External


Since: Mar 14, 2004
Posts: 716



(Msg. 2) Posted: Sat Aug 13, 2005 5:18 pm
Post subject: Re: Authentication Error??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You appear to be missing delimiters between some of the arguments (before
User ID and before Data Source)

If that doesn't solve the problem, try using the connection string Carl
Prothman has at
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Mike" wrote in message

Ok so heres the code.. for some reason I kept getting the no
permissions message, so I attempted to add the access workgroup file.
Now I
get the "Authentication Failed" message. This is a secure database.
HELP.. I know I'm writing (adding) something wrong... The user i'm
using is a valid user in the workgroup associated with the DB.


THanks


CODE FOLLOWS.


Private Function CallJetDB(strMDB As String) As Boolean
Dim SecFile As String
Dim creaobj As Object
SecFile = DLookup("VCIRSecfile", "tbldbpaths")
Set creaobj = CreateObject("ADODB.Connection­")
With creaobj


.ConnectionString = "Provider=Microsoft.Jet.OLEDB.­4.0;Jet
OLEDB:System Database=" & SecFile & "User ID=Viewer;Password=12345" _
& "Data Source=" & strMDB & "; Mode=Share Deny None;"
.Open
CallJetDB = (cnn.Properties("Jet OLEDB:Engine Type") = 5)
End With
ExitHere:
creaobj.Close
Set creaobj = Nothing
Exit Function
End With
End Function

 >> Stay informed about: Authentication Error??? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can someone please help me to fix an error ? - I am using VB.NET. I just created a form where user enters information. Once information is entered, user clicks ok button. While updating the table, I am getting an error and it does not update. I am using 2 tables, INVSHIP and PARTSQTY. Both hav...

Runtime Error 91 - Hi I have a VB6 Application wich connect to an Access 97 database. We have a function to connect to the database like this Dim wrkDefault As Workspace Set wrkDefault = DBEngine.Workspaces(0) Set objDatabase =..

dao recordset error trapping - I have a dao recordset which I update with the following code: With rsOrderShip .Edit !CustCode = frmOrders.txtSTCustCode.Text !stcustname = frmOrders.txtSTCustName.Text !staddress1 = frmOrders.txtSTAddress1.Text ....

Error 3167 recordset is delete - Hello, ich habe in verschiedenen Newsgroups gesucht aber keine Lösung zu dem folgenden Problem gefunden. Zwei Personen arbeiten gemeinsam mit einem VB6-Programm an einer ACCESS 2000 Datenbank Der Zugriff von VB auf ACCESS erfolgt mit DAO 3.60. Eine de...

error 3167 "record deleted" - Hello, I have searched in newsgroup for the following error and found nothing which can help me. Two people are working together with an visual basic application in one database. The database is access 2000 and visual basic makes an connection to the..
   Database Forums (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]