🚀 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 Maciej Sat, 05 Dec 1998 00:00
A'97 - Gdy Debug.Print rst.RecordCount = 0
#348
Author: Maciej
Date: Sat, 05 Dec 1998 00:00
31 lines
1359 bytes
Witam wszystkich.
W obiekcie recordset (rst) opartego na Tabeli A jest zero rekordow. (Bo w
tabeli A jest zero!)
W zwiazku z tym cos takiego jak : rst.edit konczy sie bledem.

Po kolei:

Sub WpiszDane()

Dim dbs as Database, rst as Recordset

set dbs=CurrentDB
set rst=dbs.OpenRecordset("A")
Debug.Print rst.RecordCount    '-tu mowi, ze wzestawie nie ma rekordow
(pokazuje 0)
rst.Edit    '-tu wywala blad, ze brak biezacego rekordu i na tym koniec, a
ja chce dalej tak:

rst!Imie="Jan"
rst!Nazwisko="Kowalski"
rst.Update
rst.close
set dbs=nothing
End Sub

Co robic, aby ten pierwszy rekord (pusty) stal sie rekordem biezacym i abym
mogl go uaktualnic (koniecznie w zestawie Recordset)???

Bardzo prosze na priva: sp5...@vc.pl

Dziekuje i pozdrawiam - Maciej
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