Passing parameters from VB6 to SQL - TechRepublic
General discussion
November 10, 2005 at 09:12 AM
setivi

Passing parameters from VB6 to SQL

by setivi . Updated 20 years, 7 months ago

Dim intVal as Integer
intval = 2020
qconn.Execute(“Select * from Table1 where userid=intval”)

The question is how can I make sql recognize or accept intval as a predefined variable in VB6 and run the query with resultset based on the value of intval?

This discussion is locked

All Comments