kong_haakon
Registered User.
- Local time
- Today, 23:08
- Joined
- Jan 30, 2013
- Messages
- 18
Hello all of you enlightened!
I have a problem with getting a form filtered the way I want..
This is a simple contact-database, with one table, to be published on sharepoint. I have a navigation form with three subforms, one of wich is a Continuous form based on the table of the DB.
I've added 4 textboxes on top of this form, to input the parameters i want to filter the form by, but I cant get the macros to work properly..
The form shows a contact list, and the text boxes is Name (wich should filter the columns FirstName and LastName in the table), Instrument (to filter two columns called instrument1 and instrument2), Area (to filter the column called area), and status (to filter the column called status) The two latter I would actullay prefer a combobox, but one thing at the time..
I've also added a Filter commandbutton, and a Remove Filter commandbutton, but i'm not shure if i need those in a continous form like this if I get the filtering to work..
So my problem is figuring out what to write in the macros, set the tempvars correctly (or localvars?) and make the form show all the hits based on the info on the textboxes. They should also allow for any of the fields to be left blank as to allow that parameter to return all records.
Should the macros be "written" under the textboxes or under the command button? Or maybe a bit of both?
I've tried the method explained here: http://blogs.office.com/b/microsoft-access/archive/2010/04/21/macros-search-form.aspx , but I'm apparently doing something wrong.
ANY ideas will be highly appreciated! This is so simple in theory but I can litteraly touch my own incompetence here
Thank you!
I have a problem with getting a form filtered the way I want..
This is a simple contact-database, with one table, to be published on sharepoint. I have a navigation form with three subforms, one of wich is a Continuous form based on the table of the DB.
I've added 4 textboxes on top of this form, to input the parameters i want to filter the form by, but I cant get the macros to work properly..
The form shows a contact list, and the text boxes is Name (wich should filter the columns FirstName and LastName in the table), Instrument (to filter two columns called instrument1 and instrument2), Area (to filter the column called area), and status (to filter the column called status) The two latter I would actullay prefer a combobox, but one thing at the time..
I've also added a Filter commandbutton, and a Remove Filter commandbutton, but i'm not shure if i need those in a continous form like this if I get the filtering to work..
So my problem is figuring out what to write in the macros, set the tempvars correctly (or localvars?) and make the form show all the hits based on the info on the textboxes. They should also allow for any of the fields to be left blank as to allow that parameter to return all records.
Should the macros be "written" under the textboxes or under the command button? Or maybe a bit of both?
I've tried the method explained here: http://blogs.office.com/b/microsoft-access/archive/2010/04/21/macros-search-form.aspx , but I'm apparently doing something wrong.
ANY ideas will be highly appreciated! This is so simple in theory but I can litteraly touch my own incompetence here

Thank you!