![[identity profile]](https://www.dreamwidth.org/img/silk/identity/openid.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Добрый день
Мне надо сделать поиск по таблице с помощью параметрического запроса. То есть чтобы я вводил одно слово из названия книги, и access искал упоминание этого слова во всей строке.
Что-то типа "like *слово*", только с вылетающим окошком "введите название".
Всякие "для чайников", гугл и сообщество ru_msoffice молчат.

Мне надо сделать поиск по таблице с помощью параметрического запроса. То есть чтобы я вводил одно слово из названия книги, и access искал упоминание этого слова во всей строке.
Что-то типа "like *слово*", только с вылетающим окошком "введите название".
Всякие "для чайников", гугл и сообщество ru_msoffice молчат.
no subject
Date: 2009-05-30 04:07 pm (UTC)no subject
Date: 2009-05-31 11:30 pm (UTC)И в любом случае тут нет [], т.е. запрос придётся каждый раз переконструировать под нужное слово.
no subject
Date: 2009-05-30 05:20 pm (UTC)no subject
Date: 2009-05-31 11:27 pm (UTC)no subject
Date: 2009-05-31 11:52 pm (UTC)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.
ну и дальше много :)
no subject
Date: 2009-06-01 12:07 am (UTC):)
Date: 2009-06-01 12:11 am (UTC)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 ]&"*".
no subject
Date: 2009-06-01 12:10 am (UTC)