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 Posted / 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 |
Post New Answer View All Answers
How you can replace string in qtp?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
How to find the name of the machine where you are running your automation scripts in qtp?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What are the different types of recording modes in qtp? Which will be used when?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
what is the difference between IE & Netscape in web testing on a log in page
what is supply chain management?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
after initiating one project for testing, when exacltly QTP tester role starts?
What is the use of an object spy tool in qtp?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
QTP script is not working on other's machine..
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
How can get count of list box?