Q
Question Boy
Hello,
I can’t wrap my head around what I thought would be a simple query.
I have 4 tables
tbl_clients
clientid
firstname
lastname
…
tbl_instl
intlid
clientid
simple
…
tbl_servicing
servid
clientid
servtype
…
tbl_comp
compid
clientid
comptype
…
All the tables are on a 1-many relationship to the tbl_clients table.
Now I have a form where the user can enter 3 parameters, each should be used
to filter the return tbl_clients results. The user can select
simple (‘yes’/’no’/’show all’)
servtype (‘weekly’,’monthly’,’annual’,’show all’)
comptype (‘desktop’,’laptop’,’server’,’show all’)
Then press an execute button….
How can I build the SQL statement require for this situation. I started
building 1 per table… a real mess. Can it be done in one neat query?
Thank you!
QB
I can’t wrap my head around what I thought would be a simple query.
I have 4 tables
tbl_clients
clientid
firstname
lastname
…
tbl_instl
intlid
clientid
simple
…
tbl_servicing
servid
clientid
servtype
…
tbl_comp
compid
clientid
comptype
…
All the tables are on a 1-many relationship to the tbl_clients table.
Now I have a form where the user can enter 3 parameters, each should be used
to filter the return tbl_clients results. The user can select
simple (‘yes’/’no’/’show all’)
servtype (‘weekly’,’monthly’,’annual’,’show all’)
comptype (‘desktop’,’laptop’,’server’,’show all’)
Then press an execute button….
How can I build the SQL statement require for this situation. I started
building 1 per table… a real mess. Can it be done in one neat query?
Thank you!
QB