i am using crystal report 10
now if i removed the password the code works fine and show no error
but if i made password to access then this code show error.
the error is
- Run time error
-
-
Logno failed
-
Details DAO Error code: 0xbd7
-
Source DAO Workspace
-
Description Not a valid password
-
the code for connecting to acces (i made a connection in module as
public)
- Set con = New Connection
-
Dim datapath As String
-
datapath = App.path & "\Orders.mdb"
-
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & datapath & ";Persist Security Info=False; Jet OLEDB:Database Password=mypasword"
and code for filtering crystal report query is
- Private Sub Form_Load()
-
Screen.MousePointer = vbHourglass
-
invoicerep.SQLQueryString = "select * from salessummary where [invoice no]=" & invoicefil.invnotxt & ""
-
CRViewer1.ReportSource = invoicerep
-
CRViewer1.ViewReport
-
CRViewer1.DisplayTabs = False
-
Screen.MousePointer = vbDefault
-
End Sub
-
when i click on dubug the code i was pointed to the following field
- invoicerep.SQLQueryString = "select * from salessummary where [invoice no]=" & invoicefil.invnotxt & ""
remember in crystal report desingner using database expert
when i made a connection to acces i give password to it
can you solve what is the error now or what thing i am missing
Hi,
If you have newly created the Password to Access Db, then you need to pass password in to the crystal report(Thru connect property)..
Which version of CR..?
Regards
Veena