Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

parameterize Excel Sheet Name in SQL

$
0
0
Code:
Dim strQuery, sheetName
    sheetName="pSheetOrFileName$"
    Dim strTestID  : strTestID=Trim("One")                                  
    Set objConnection = fnGetConnection(strFilePath)
    strQuery="SELECT * FROM  ['"&sheetName"'] WHERE TestID='"&strTestID&"' "


I used this code and wish to provide excel sheet Name dynamically.... In above code have issue
Any suggestion for correction welcome...........

Viewing all articles
Browse latest Browse all 1653

Trending Articles