C
Curis
I am currently developing a database to keep track of records requests and
all of the pertinent information for each request. For the purposes of this
question, I do not believe that the structure of the tables is important;
however, I will happily post them if requested.
Basically, what I want to do (or, more accurately, what the users want to
do) is to allow the users to search on any value across all fields of
multiple tables.
For example, I have tables called:
tblSubpInfo
tblPartyInfo
tblPartyAddresses
tblPartyPhones
tblSubpMemos
tblSubpMedicalInfo
.... and many more similarly designed. Nearly all of the tables are related
to at least one other.
I will eventually have a main entry form called frmSubpInfo that will
essentially pull all of the most important data together and allow the users
to view/edit less important data via additional forms.
What the users want is the ability to use a search feature that would
operate identically to the Find command from the Edit menu, but I am not
about to bind the frmSubpInfo form to a gigantic “master†query in order for
the Find command to work with that form. One main issue to consider is that
the nature of these records requests requires the use of memo fields to
accommodate the amount of text entered (these memos are what the tblSubpMemos
table stores), and these memo fields would frequently need to be searched
against to find records. As such, the speed of the operation will play a
factor.
I have thought about creating a small unbound form, perhaps called
frmMasterSearch, that would, through VBA, create master QueryDef using a
single parameter as the criteria for all of the searched fields, and then
using the record navigation at form in conjunction with its OnCurrent event
to syncronize the frmSubpInfo form to the found record(s).
I am just not sure if that is the best method, or what other method would be
the best approach. I need to balance the flexibility that they want with the
feasibility of such a search, and the speed with which that search can be
performed.
I hope that I explained the issue clearly enough, and I apologize for the
length of the post.
I look forward to any suggestions.
Thanks in advance,
Jeff
all of the pertinent information for each request. For the purposes of this
question, I do not believe that the structure of the tables is important;
however, I will happily post them if requested.
Basically, what I want to do (or, more accurately, what the users want to
do) is to allow the users to search on any value across all fields of
multiple tables.
For example, I have tables called:
tblSubpInfo
tblPartyInfo
tblPartyAddresses
tblPartyPhones
tblSubpMemos
tblSubpMedicalInfo
.... and many more similarly designed. Nearly all of the tables are related
to at least one other.
I will eventually have a main entry form called frmSubpInfo that will
essentially pull all of the most important data together and allow the users
to view/edit less important data via additional forms.
What the users want is the ability to use a search feature that would
operate identically to the Find command from the Edit menu, but I am not
about to bind the frmSubpInfo form to a gigantic “master†query in order for
the Find command to work with that form. One main issue to consider is that
the nature of these records requests requires the use of memo fields to
accommodate the amount of text entered (these memos are what the tblSubpMemos
table stores), and these memo fields would frequently need to be searched
against to find records. As such, the speed of the operation will play a
factor.
I have thought about creating a small unbound form, perhaps called
frmMasterSearch, that would, through VBA, create master QueryDef using a
single parameter as the criteria for all of the searched fields, and then
using the record navigation at form in conjunction with its OnCurrent event
to syncronize the frmSubpInfo form to the found record(s).
I am just not sure if that is the best method, or what other method would be
the best approach. I need to balance the flexibility that they want with the
feasibility of such a search, and the speed with which that search can be
performed.
I hope that I explained the issue clearly enough, and I apologize for the
length of the post.
I look forward to any suggestions.
Thanks in advance,
Jeff