Re: Boolean typ in Tabellenspalte richtig anzeigen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo!

Stephan Menzel schrieb:
> ich habe ein FE in Access 2003 erstellt für einen mysql Server,
> per ADO Verbindung, mein Problem ist nun das wenn ich ein
> Recordset öffne und dieses dann einen Listenfeld zuweise, werden
> Booleanwerte immer Falsch angezeigt (z.B.mit 13568 oder 24833 oder
> -24063)! In MySql ist das Feld als tinyint(1) deklariert!
> Wenn ich die Tabelle verknüpfe, wird der Wert mit 0 oder 1 angezeigt!
> Kennt das Problem jemand?

Ist mir bis jetzt noch nicht aufgefallen, besteht aber auch in meiner
Testanwendung. Es ist zum Glück nur eine falsche Anzeige. Als ich auf
den Feldwert zugriff, wurde der richtige Wert verwendet.
Ein direkter Zugriff auf ein ADO-Recordset liefert auch den richtigen
Wert.

Ich vermute, dass es ein Problem mit dem Wertebereich gibt.
Vielleicht versucht ADO einen unsigned tinyint zu verwenden.
Grund: gibt man in ein Formular die Zahl -1 ein, so wird nach dem
Aktualisieren 255 angezeigt.
Wenn man als Datentyp tinyint(1) unsigned verwendet, gibt es kein
Problem.

mfg
Josef

--
EPT: (Access Error Prevention Table) http://access.joposol.com/
FAQ: (Access-FAQ von Karl Donaubauer) http://www.donkarl.com/
.



Relevant Pages

  • Re: Boolean typ in Tabellenspalte richtig anzeigen
    ... >> Recordset öffne und dieses dann einen Listenfeld zuweise, ... >Vielleicht versucht ADO einen unsigned tinyint zu verwenden. ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.access)
  • Re: ADO Recordset Daten ändern
    ... ADO kann systembedingt in einem Recordset, ... nur die Values einer Tabelle updaten. ... Next by Date: ...
    (microsoft.public.de.vb.datenbank)
  • Re: Is ADO Dead (3)?
    ... The Design of ADO ... ADO uses a single object, the Recordset, as a common representation for ... a forward-only stream of results from a database, ... where data is updated at the data source or cached locally as with the ...
    (comp.databases.ms-access)
  • Re: Is ADO Dead (3)?
    ... The Design of ADO ... ADO uses a single object, the Recordset, as a common representation for ... a forward-only stream of results from a database, ... where data is updated at the data source or cached locally as with the ...
    (comp.databases.ms-access)
  • Re: Is ADO Dead (3)?
    ... The Design of ADO ... ADO uses a single object, the Recordset, as a common representation for ... a forward-only stream of results from a database, ... where data is updated at the data source or cached locally as with the ...
    (comp.databases.ms-access)