🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.bazy-danych.msaccess
1 messages
1 total messages Started by Tom Jastrzebski Fri, 27 Nov 1998 18:22
Record z polem autonumber - jak go przeczytać?
#305
Author: Tom Jastrzebski
Date: Fri, 27 Nov 1998 18:22
21 lines
1498 bytes
Mam record którego jedno z pól jest typu autonumber. Dodaje nowy record i
próbuję sprawdzić jaki też numer został przyporządkowany pierwszemu pole
(typu autonumber właśnie).
Bezskutecznie! Próba czytania zwraca wartość null.

Eg.

rec.AddNew
rec!SecondField="data1"
rec!ThirdField="data2"
rec.rec.UpdateBatch
debug.print rec!FirstField    - returns null
debug.print rec!SecondField    - returns data1
debug.print rec!ThirdField    - returns data2

(program w VB 6.0 , recordset ADODB with events - jeśli ma to jakieś
znaczenie)

Dziękuję z góry za pomoc.

Tomasz Jastrzębski
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads