If you trying to query a list of names from the employee table, try this.
dim rs as adodb.recordset
dim cn as adodb.connection
set rs = new adodb.recordset
set cn = currentproject.connection
RS.Open "SELECT * FROM EMPLNAME WHERE LASTNAME LIKE '" & TEXT.Value & "%' AND FIRSTNAME LIKE '%" & Text.Value & "%' ORDER BY LNAME,FNAME", CN, adOpenStatic
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.