Hi I have created a table in the MS access database. I want
to access the table in this database through QTP. The code
is given below. The code is not working.The following error
is displayed "Data source name not found and no default
driver specified". Any one can correct the code. Thanks in
advance.
Dim dbconnection, rs
Dim ca, sname
Set dbconnection = createobject("ADODB.Connection")
Set rs = createobject("ADODB.Recordset")
dbconnection.open "DSN = MS Access Database","", ""
rs.open "select * from Research", dbconnection
rs.movefirst
If rs.EOF <> True AND rs.BOF<> True then
ca = rs("order_number")
sname = rs("customer_number")
rs.movenext
msgbox ca
msgbox sname
End If
Answer / lakshmi
Hi,
you should to give proper DSN(datasouce name) and its path
of the MS-Access i.e like for Eg:'D:\mydatabase\list.mdb"
I think you understood my point
| Is This Answer Correct ? | 0 Yes | 1 No |
what is the difference between QTP 8.0 & 9.0?
what is debugging testing?
what is the main use of reviews
Explain in brief about the QTP Automation Object Model.
What are they Advantages and Disadvantages in QTP 9.2?
How can we close all webbrowsers which are opened in out desktop?
what questions i have to pripare for project manager round interview ? plz give Ans.(Chandana)
what r advance features u had done in QTP?
What is parameter in qtp?
Explain about merging of two repositories?
what r the 3 basic factor on which we determine to perform automation
How to find local host name using QTP?