|
|
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
Народ! Помогите Создал я мастером кнопку для просмотра отчета ! Но как мне перед выодом сделать чтобы выводил данные из базы полученные только за последнюю неделю! Подсказали что использовать надо datediff()! Ну а поподробнее никак видимо!? Помогите дальше! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 09:41:59 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
в запросе в поле даты отчета в условии прописать >=Date()-7 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 10:03:50 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
коряво получилось :( открываешь запрос, на основе которого построен отчет, находишь поле с датой, по которой собираешься фильтровать данные и в условии пишешь: >=Date()-7 вроде так. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 10:05:47 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
точно :) kedzo правильно написал :) у меня получилось :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 10:29:15 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
открываешь запрос, на основе которого построен отчет, находишь поле с датой, по которой собираешься фильтровать данные и в условии пишешь: Погодите А что еще запрос надо строить предварительно? Это для andj25! Скачал твой файл но в запросах пусто!?????что бы это значило? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:05:29 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
НАрод ! ЧТо молчите? Неужто никто не знает? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:36:39 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
отчет можно с делать на основе 1. запроса 2. таблицы 3. и другими способами :) Случай 1. а. запрос может быть сохранен в базе б. запрос может храниться в самом отчете (конструктор - свойства - вкладка данные- поле источник данных (первое) - вызвать конструктор запроса) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:49:35 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
DenDYПогодите А что еще запрос надо строить предварительно? Если отчет через запрос, то в запрос заноси условие. Если RecordSource отчета - прямой селект, то в этот селект и заноси. Давно бы уж хелп открыл и прочёл ;) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:49:36 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
Если хочешь отбирать данные для отчета, то строй запрос. А на основании этого запроса делай отчет... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:50:39 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
Я не понял а как на основе запроса строить отчет?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 11:57:37 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
HELPRecordSource Property You can use the RecordSource property to specify the source of the data for a form or report. You can display data from a table, query, or SQL statement. For example, to display and edit data from the Employees table in a form, you set the form's RecordSource property to Employees. Then you can bind controls on the form or report to specific fields in the Employees table by setting the control's ControlSource property to the name of a field in the table. For example, you can bind a control to the LastName field in the Employees table by setting the control's ControlSource property to LastName. Setting The RecordSource property setting can be a table name, a query name, or an SQL statement. For example, you can use the following settings. Sample setting Description Employees A table name specifying the Employees table as the source of data. SELECT Orders!OrderDate FROM Orders; An SQL statement specifying the OrderDate field on the Orders table as the source of data. You can bind a control on the form or report to the OrderDate field in the Orders table by setting the control's ControlSource property to OrderDate. You can set the RecordSource property by using the form's or report's property sheet, a macro, or Visual Basic. In Visual Basic, use a string expression to set this property. Note Changing the record source of an open form or report causes an automatic requery of the underlying data. If a form's Recordset property is set at runtime, the form's RecordSource property is updated. Remarks After you have created a form or report, you can change its source of data by changing the RecordSource property. The RecordSource property is also useful if you want to create a reusable form or report. For example, you could create a form that incorporates a standard design, then copy the form and change the RecordSource property to display data from a different table, query, or SQL statement. Limiting the number of records contained in a form's record source can enhance performance, especially when your application is running on a network. For example, you can set a form's RecordSource property to an SQL statement that returns a single record and change the form's record source depending on criteria selected by the user. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 12:04:09 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
Не че что я русский?? :) Подсказку я и так мог вызвать! На кой она только! все по инглишу! как мастером, Что то я торможу , сделать отчет по запросу? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 12:08:05 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
DenDYЯ не понял а как на основе запроса строить отчет?? В качестве источника данных отчета выбираешь свой запрос. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 12:08:24 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
Да доперло! Че то сегодня торможу не по детски:) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 12:38:03 |
|
||
|
ОТчет 2
|
|||
|---|---|---|---|
|
#18+
а мой пример работает :) что тебе было в нем не понятно то? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.07.2004, 13:08:10 |
|
||
|
|

start [/forum/topic.php?fid=45&msg=32600896&tid=1673242]: |
0ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
44ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 215ms |
| total: | 328ms |

| 0 / 0 |
