oldValue
moellfe
Gesendet: 27.02.13 15:41
Betreff: oldValue


Hallo,

ich habe ein Problem mit der Eigenschaft "oldValue" in einem Formular.
Die RecordSource für dieses Formular ist eine Abfrage mit 2 Tabellen.
Immer dann wenn die Felder der 2. Tabelle mit oldValue angesprochen werden, kommt folgende Fehler-Meldung:
3251 - Operation wird für diesen Objekttyp nicht unterstützt.

Hier die Abfrage für die RecordSource:

SELECT tblArtikel.ARTNR, tblArtikel.Bezeichnung, tblArtikelStk.BruttoGewStk, tblArtikelStk.NettoGewStk
FROM tblArtikel LEFT JOIN tblArtikelStk ON tblArtikel.AArtNrStk = tblArtikelStk.ArtNrStk
WHERE (((tblArtikel.BARTNR)=[Forms]![frmArtikel]![BArtNr]) AND ((tblArtikel.ARTNR)=[Forms]![frmArtikel]![ArtNr]));

Hier der Code aus dem Before_Update Ereignis des Formulars:

Dim ctl As Control


40 With Me
...
...
...
160 For Each ctl In .Controls
170 If (ctl.ControlType = acTextBox Or ctl.ControlType = acCheckBox Or ctl.ControlType = acComboBox Or ctl.ControlType = acListBox Or ctl.ControlType = acOptionGroup) Then
180 If ctl.Enabled = True And ctl.Visible = True Then
190 If Ungleich(ctl.oldValue, ctl) Then
...
... ' Log-Eintrag erzeugen
...
250 End If
260 End If
270 End If
280 Next ctl

290 End With

Kann mir jemand weiterhelfen?
Vielen Dank im Vorraus !

Top of the page Bottom of the page