I'm trying to query a number variable to populate a listbox but no records are selected:
Dim stSQLString As String
Dim num as Integer
num = 2
stSQLString = "select * from emp where empno = '" & num & "'"
lstEmp.RowSource = stSQLString
Why is this not working?
Thanks.
Dim stSQLString As String
Dim num as Integer
num = 2
stSQLString = "select * from emp where empno = '" & num & "'"
lstEmp.RowSource = stSQLString
Why is this not working?
Thanks.