HI
I have a form with a few buttons. Each button runs a few lines of code.the code have queries also in them like ‘select * from table where number =6’
now if i want to give the number as a input in the form, how do i go about it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update your button code to generate the query string as :
‘SELECT * FROM myTable WHERE myNumber =’ & me.controls(‘myControlName’).value
You might feel the need to make sure that the ‘myControlName’ control allows only numbers/do not accept null, or treat all cases in your procedure