Thanks for all your quick replies - I have a command button in an existing
form that runs a query which used to open another form. I have changed the
form that I wish it to open and now whenever I run the same query it opens my
result in spreadsheet view not in form view. I guess I should have been
clearer!!! I did go into the Event Builder and just tried to sneakily change
the form name but this didn't work!
So I want my query to open in form view not spreadsheet view....
- Show quoted text -
- First create a form based on your Surname Search Query.
- Go back to your original form...the one with the button that calls
the query currently
- Create a new Command Button, when the Wizard pops up choose "Form
Operations" and then "Open Form" from the actions listbox.
- Select the form you just created from the Listbox
- Click Next/Finish and that should be done
This is if you've already got your criteria pulling from your
Query...if you have the original form with a Textbox on it with "Find
Surname: ________" or similar, then you will need to load the new form
with a Filter applied to find that surname...but it sounds to me like
you already had that part covered (probably by putting [Surname] in
your Criteria for that field in the query).
You cannot "open a query in form view" unless you've created the form
already. A form view doesn't exist until you've created the form!