J
jthorsvik
I need to perform a SQL query in VBA and display the result in a
textbox. First let me explain my situation. I have a form with two
text boxes, one is called txtLName and the other txtNum. I also have a
table called People. I want to run the following query in the
txtLName_Change() event and display the result in txtNum.
SELECT COUNT(LName) AS Num FROM People WHERE LName LIKE
'Me![txtLName]*';
Eventually the value returned will go to an if statement, but for now
just getting it to a textbox is great. Thank you, Jon
textbox. First let me explain my situation. I have a form with two
text boxes, one is called txtLName and the other txtNum. I also have a
table called People. I want to run the following query in the
txtLName_Change() event and display the result in txtNum.
SELECT COUNT(LName) AS Num FROM People WHERE LName LIKE
'Me![txtLName]*';
Eventually the value returned will go to an if statement, but for now
just getting it to a textbox is great. Thank you, Jon