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 object identification?
Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?
What is a Web Table?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
With what extension you can save the list of tests in a file to run in test batch runner?
How to find the difference between 2 dates in qtp?
How to find which type of Framework is suitable for which type of application?
how can i count the number of links???
what is Supplemental Objects ?
Please explain me frameworks & how to generate the scripts in framework
What are the Features & Benefits of Quick Test Pro (QTP)..?
Hi Currently am using Qtp 10.0 Lisenced product.. but when am adding objects to object repository from google page it was identifying as windows objects.. please help me!!!