A
ashg657
Hello all,
I have a few years experience in developing Access MDB applications. I have
now moved on to start looking at Access 2007 and SQL (.ADP)
I have begun by creating an extremely simple knowledgebase database but am
stuck on creating a SQL query to perform a search. Here's what I need to
do...:
I have a single table (tbl-KBItems) and a single search form (frm-SearchKB)
On the search form I have 3 controls. The first one is a textbox which the
user will be able to type any text into.
The second control labelled 'Within' will specify which field this text
should be found in. This is a Value List combobox.
The third control is labelled 'For Product' - again a predefined Value List
combobox.
Once the user has filled out these 3 controls, we have enough information to
search the database (hope you're following me here). So, what we end up with
is any text from control 1, contained within field from control 2 and for
product assigned in control 3 - should be returned in my results panel.
I need a SQL query to perform this. Previously in MDB's I have thrown in a
couple of IIF statements and bang job done nice & easy. However with ADP's
I'm under the impression it's all very different! Any suggestions on how to
achieve this and how to get started?!
Many Thanks.
I have a few years experience in developing Access MDB applications. I have
now moved on to start looking at Access 2007 and SQL (.ADP)
I have begun by creating an extremely simple knowledgebase database but am
stuck on creating a SQL query to perform a search. Here's what I need to
do...:
I have a single table (tbl-KBItems) and a single search form (frm-SearchKB)
On the search form I have 3 controls. The first one is a textbox which the
user will be able to type any text into.
The second control labelled 'Within' will specify which field this text
should be found in. This is a Value List combobox.
The third control is labelled 'For Product' - again a predefined Value List
combobox.
Once the user has filled out these 3 controls, we have enough information to
search the database (hope you're following me here). So, what we end up with
is any text from control 1, contained within field from control 2 and for
product assigned in control 3 - should be returned in my results panel.
I need a SQL query to perform this. Previously in MDB's I have thrown in a
couple of IIF statements and bang job done nice & easy. However with ADP's
I'm under the impression it's all very different! Any suggestions on how to
achieve this and how to get started?!
Many Thanks.