Where Condition

  • Thread starter Thread starter daisy
  • Start date Start date
D

daisy

I am creating a command button on a form so that when it
is clicked, it opens another form. But I am having
trouble with the Where Condition in the SQL statement for
that button. I want the second form to open but only
give me records where the field "grade" is equal to 6.
How do I write that? Thanks!
 
daisy said:
I am creating a command button on a form so that when it
is clicked, it opens another form. But I am having
trouble with the Where Condition in the SQL statement for
that button. I want the second form to open but only
give me records where the field "grade" is equal to 6.
How do I write that? Thanks!

DoCmd.OpenForm "FormName",,,"grade = 6"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top