Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using an output value as input to a SQL statement
#2
Not Solved
You can pass a variable to a string then pass that string to the DB Query:
Code:
ZipCode="12345"
sqlstring= "SELECT count(*)  FROM LOCCITY WHERE  LOCCITY.LOCZIPCODESTART LIKE '"&ZipCode&"%' "

Set Rec = CreateObject("ADODB.Recordset")
SQL= ""&sqlstring&" "
Rec.open SQL ,conn

as you can see I'm just getting the count back
Reply


Messages In This Thread
RE: Using an output value as input to a SQL statement - by Jackomcnabb - 07-30-2009, 03:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 805 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,188 08-07-2017, 11:34 PM
Last Post: zunebuggy
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 1,992 08-25-2015, 05:49 PM
Last Post: bkdevise
  Output Values error Tasleem 3 3,761 10-27-2014, 02:13 PM
Last Post: Tasleem786
  parameterize Excel Sheet Name in SQL bjitsidhu 0 2,746 07-20-2014, 08:34 AM
Last Post: bjitsidhu

Forum Jump:


Users browsing this thread: 1 Guest(s)