🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2412

Probleem MS Data Bound Grid Control 5.0

#2412
From: Joeki
Date: Tue, 15 Jun 2004 11:21
47 lines
2649 bytes
hallo,

Ik heb het volgende probleem.

Ik heb een formulier met een datagrid, wanneer ik een tweede rij selecteer
krijg ik volgende foutmelding: "Kan veld niet bijwerken".

Ik heb volgende code:


DatDBGridBehandeling.RecordSource = "SELECT
tbl_BezoekBehandeling.IdBezoekBehandeling, tbl_BezoekBehandeling.IdBezoek,
tbl_Behandeling.Omschrijving, tbl_BezoekBehandeling.Aantal,
tbl_BezoekBehandeling.Prijs FROM tbl_Behandeling INNER JOIN
tbl_BezoekBehandeling ON tbl_Behandeling.IdBehandeling =
tbl_BezoekBehandeling.IdBehandeling WHERE tbl_BezoekBehandeling.IdBezoek=" &
TxtBezoekId.Text & ""
    DatDBGridBehandeling.Refresh
    If DatDBGridBehandeling.Recordset.RecordCount <> 0 Then
        DBGridBehandeling.Columns(0).Text =
DatDBGridBehandeling.Recordset.IdBezoekBehandeling
        DBGridBehandeling.Columns(1).Text =
DatDBGridBehandeling.Recordset.Omschrijving
        DBGridBehandeling.Columns(2).Text =
DatDBGridBehandeling.Recordset.Aantal
        DBGridBehandeling.Columns(3).Text =
DatDBGridBehandeling.Recordset.Prijs
        CmdNieuweBehandeling.Enabled = True
        CmdBehandelingVerwijderen.Enabled = True
        CmdBehandelingWijzigen.Enabled = True
        CmdNieuwProduct.Enabled = True
    Else
        CmdBehandelingVerwijderen.Enabled = False
        CmdBehandelingWijzigen.Enabled = False
    End If


Wanneer ik IdBezoekBehandeling verwijder krijg ik foutmelding niet, maar dan
kan ik de record in een volgend formulier niet wijzigen omdat ik
IdBezoekBehandeling hiervoor nodig heb.

Ik hoop dat jullie snel kunnen reageren want mijn eindwerk moet morgenavond
binnen zijn en zit er nu al meer dan een dag achter te zoeken.

Alvast bedankt voor de moeite,

Joeki
Technical Details
Message-ID: <MYAzc.156555$lK5.7799917@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,a899d8f4fb151687,start
X-Google-Attributes: gidfcea4,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "Joeki" <.@/./>
Newsgroups: be.comp.programming
Subject: Probleem MS Data Bound Grid Control 5.0
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <MYAzc.156555$lK5.7799917@phobos.telenet-ops.be>
Date: Tue, 15 Jun 2004 11:21:16 GMT
NNTP-Posting-Host: 213.119.15.93
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1087298476 213.119.15.93 (Tue, 15 Jun 2004 13:21:16 MEST)
NNTP-Posting-Date: Tue, 15 Jun 2004 13:21:16 MEST
Organization: Telenet Internet