|
|
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
Сделал ХП которая может возвращать как редактируемый , так и не редактируемый набор. На ней основана форма. Как в форме определить какой набор вернула ХП. Access это видит и говорит (внизу в строке состояния) "даданный набор данных не допускает обновление" Как называется свойство которое можно посмотреть из VBA? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 15:36 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
никогда не интересовался на скорую руку могу предложить DoCmd.GoToRecord , , acNewRec если будет ошибка то ее перехвати извиняйте, что не шибко- отвечаю по сутИ. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 16:06 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
RecordsetType возвращает не то что нужно ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 16:07 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
From Help: Updatable Property Returns a value that indicates whether you can change a DAO object. Return Values The return value is a Boolean data type that is True if the object can be changed or updated. (Snapshot- and forward-only–type Recordset objects always return False.) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 16:11 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
mk:@MSITStore:C:\Program%20Files\Microsoft%20Office%20XP\Office10\1049\acmain10.chm::/html/acproRecordsetType_EU.htm ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 16:17 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
MsgBox [пф Контрагенты].Form.Recordset.Supports(adUpdate) тоже возвращает True а на самом деле необновляемый шкет и шайтан вы хоть проверяете то, что советуете? если вы про это RecordsetType Property See Also Applies To Example Specifics You can use the RecordsetType property to specify what kind of recordset is made available to a form. Read/write. expression.RecordsetType expression Required. An expression that returns one of the objects in the Applies To list. Remarks The RecordsetType property uses the following settings in a Microsoft Access database (.mdb). Setting Visual Basic Description Dynaset 0 (Default) You can edit bound controls based on a single table or tables with a one-to-one relationship. For controls bound to fields based on tables with a one-to-many relationship, you can't edit data from the join field on the "one" side of the relationship unless cascade update is enabled between the tables. For more information, see the topic that explains when you can update records from a query. Dynaset (Inconsistent Updates) 1 All tables and controls bound to their fields can be edited. Snapshot 2 No tables or the controls bound to their fields can be edited. If you don't want data in bound controls to be edited when a form is in Form view or Datasheet view, you can set the RecordsetType property to Snapshot. The RecordsetType property uses the following settings in a Microsoft Access project (.adp). Setting Visual Basic Description Snapshot 3 No tables or the controls bound to their fields can be edited. Updatable Snapshot 4 (Default) All tables and controls bound to their fields can be edited. то выдает все время 4 а набор-то необновляемый ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 16:26 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
Можно попробовать свойство "Unique Rows" для ADO-рекордсета использовать, т.е. если оно True, в принципе, данные должны быть обновляемые, иначе - нет. Код: plaintext 1. 2. 3. 4. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 17:53 |
|
||
|
Как унвть обновляемый или нет источник формы
|
|||
|---|---|---|---|
|
#18+
Я думаю что тебе нужно создавать QueryDef, который принадлежит форме и там можно будет проверить по св-ву:Updatable. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.08.2003, 18:06 |
|
||
|
|

start [/forum/topic.php?fid=45&msg=32242099&tid=1679806]: |
0ms |
get settings: |
8ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
60ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 209ms |
| total: | 341ms |

| 0 / 0 |
