[identity profile] borsug.livejournal.com posting in [community profile] useful_faq
Добрый день
Мне надо сделать поиск по таблице с помощью параметрического запроса. То есть чтобы я вводил одно слово из названия книги, и access искал упоминание этого слова во всей строке.
Что-то типа "like *слово*", только с вылетающим окошком "введите название".
Всякие "для чайников", гугл и сообщество ru_msoffice молчат.

Date: 2009-05-30 04:07 pm (UTC)
From: [identity profile] vdas.livejournal.com
select name from Ttable where name like ?

Date: 2009-05-30 05:20 pm (UTC)
From: [identity profile] nataein.livejournal.com
Like "*" & [Введите слово:] & "*"

Date: 2009-05-31 11:52 pm (UTC)
From: [identity profile] vdas.livejournal.com
F1, набираем query parameters и получаем :)

Use parameters in queries
Using a parameter in a query is as easy as creating a query that uses criteria. You can design a query to prompt you for one piece of information, such as a part number, or for more than one piece of information, such as two dates. For each parameter, a parameter query displays a separate dialog box that prompts you for a value for that parameter.

Add a parameter to a query
Create a select query, and then open the query in Design view (Design view: A view that shows the design of these database objects: tables, queries, forms, reports, and macros. In Design view, you can create new database objects and modify the design of existing objects.).
In the Criteria row of a field for which you want a parameter applied, type the text that you want the parameter dialog box to display, enclosed in square brackets, for example:
[Start Date]

When you run the parameter query, the prompt appears in a dialog box without the square brackets.

You can also use an expression with your parameter prompts, for example:

Between [Start Date] And [End Date]


Note A separate dialog box appears for each parameter prompt. In the second example, two dialog boxes appear: one for Start Date and one for End Date.


ну и дальше много :)

:)

Date: 2009-06-01 12:11 am (UTC)
From: [identity profile] vdas.livejournal.com
Так вот на той же странице хелпа то, что тебе помогло:

In the Criteria row of the field for which you want the parameter applied, type Like "*"&[, type the text that you want to use as a prompt, and then type ]&"*".

Date: 2009-06-01 12:10 am (UTC)
From: [identity profile] nataein.livejournal.com
Я просто уже давно с Access'ом знакома. Изучала в основном по справочной системе, там есть все, включая сам язык запросов. Большинство проблем удавалось решить поиском в гугле. Если натыкалась на грабли, спрашивала в форумах, например на sql.ru или на rsdn.ru.