Hallo Christian,
Zitat:
Ich verstehe bisher nur nicht, wie das mit dem "Änderungen sind sichtbar"(oder eben nicht) zu verstehen ist, wenn ich doch die Inhalte/Werte der Steuerelemente zuerst in ein Recordset einfüge und dann in die DB schreibe. Da "sehe" ich doch eigentlich keine Änderungen. Vermutlich habe ich mich gerade mehrdeutig ausgedrückt - aber welchen CursorType soll ich verwenden und wovon ist das abhängig??
Also das steht auf Englisch in der Open-Hilfe bei Access2003:
'adOpenForwardOnly 0 Default.
'Uses a forward-only cursor. _
Identical to a static cursor, except that you can only scroll forward _
through records. This improves performance when you need to make only _
one pass through a Recordset.
'adOpenKeyset 1 Uses a keyset cursor. _
Like a dynamic cursor, except that you can't see records _
that other users add, although records that other users delete _
are inaccessible from your Recordset. Data changes by other users _
are still visible.
'adOpenDynamic 2 Uses a dynamic cursor.
'Additions, changes, and deletions by other users are visible, _
and all types of movement through the Recordset are allowed, _
except for bookmarks, if the provider doesn't support them.
'adOpenStatic 3 Uses a static cursor.
'A static copy of a set of records that you can use to find data _
or generate reports. Additions, changes, or deletions by other users _
are not visible.
'adOpenUnspecified -1 Does not specify the type of cursor.
Jetzt kommt es nur darauf an, was der Client machen darf, wenn er ein Recordset öffnet: soll er alles sehen, auch die Änderungen anderer Clients, dann kommt wohl nur adOpenDynamic in Frage. Soll hingegen nur der aktuelle Datensatz bearbeitet werden, kannst du den Standardwert setzen, also adOpenForwardOnly, oder halt 0
Ansonsten spricht der Text ja für sich...
Gruß Leo