I have a continuous form that i would like to populate via a sql select statement in my VBA script. I can’t seem to make this work:
sel = "Select * from table1 where a = 10;"
Set SQL = db.OpenRecordset(sel)
SQL.Requery
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.
Why don’t you put your select instruction in the recordsource property of the form?
if your script is in one of the form’s procedures, or
if your script is in an independant module