JHammond
03-10-2009, 10:05 AM
I have a large database of contacts that I'm trying to build a user
friendly front for in Access 2000. Essentially I'm trying to build an
interface that allows a user to query contact position titles and then
narrow by several additional selects including states, whether or not a
contact has a mailing address, a phone number, and/or an email.
Using Jon K's post here (http://www.access-programmers.co.uk/forums/showthread.php?t=103312) helped me immensely with the initial groundwork,
however I find myself now stuck trying to build out a few more features.
Right now I have a form that looks like so:
(txtbox) Position Title 1:
(txtbox) Position Title 2:
(txtbox) Position Title 3:
(txtbox) Position Title 4:
(txtbox) Position Title 5:
(txtbox) Position Title 6:
(combo box) State:
(cmnd button) Preview
The two immediate query obstacles I have are
1.) The position title query language is set up so that entering no
information automatically brings back all records, however in the
situation where I enter fewer than 6 position titles, any blank boxes
cause all records to be returned. The only work around I've found is
entering a value like "x" in the otherwise blank boxes in order to
guarantee no results being returned.
2. )I would love the ability to select multiple states instead of a
single state. Is this something that can be addressed in the query or
the combo box?
I've attached my database below which I figured would be a more practical
way of demonstrating a complete picture of where I'm at.
Thanks in advance for any and all suggestions. This is my first post to
the forums after having found the site some months ago and utilizing many
of its' resources. Please let me know if this belongs in a different
forum or if I've forgotten a crucial peace of information.
-James
friendly front for in Access 2000. Essentially I'm trying to build an
interface that allows a user to query contact position titles and then
narrow by several additional selects including states, whether or not a
contact has a mailing address, a phone number, and/or an email.
Using Jon K's post here (http://www.access-programmers.co.uk/forums/showthread.php?t=103312) helped me immensely with the initial groundwork,
however I find myself now stuck trying to build out a few more features.
Right now I have a form that looks like so:
(txtbox) Position Title 1:
(txtbox) Position Title 2:
(txtbox) Position Title 3:
(txtbox) Position Title 4:
(txtbox) Position Title 5:
(txtbox) Position Title 6:
(combo box) State:
(cmnd button) Preview
The two immediate query obstacles I have are
1.) The position title query language is set up so that entering no
information automatically brings back all records, however in the
situation where I enter fewer than 6 position titles, any blank boxes
cause all records to be returned. The only work around I've found is
entering a value like "x" in the otherwise blank boxes in order to
guarantee no results being returned.
2. )I would love the ability to select multiple states instead of a
single state. Is this something that can be addressed in the query or
the combo box?
I've attached my database below which I figured would be a more practical
way of demonstrating a complete picture of where I'm at.
Thanks in advance for any and all suggestions. This is my first post to
the forums after having found the site some months ago and utilizing many
of its' resources. Please let me know if this belongs in a different
forum or if I've forgotten a crucial peace of information.
-James