6 messages in org.openoffice.fr.prog[prog] OOo1.1.4: Macro BDD - Ajout d'...
FromSent OnAttachments
Ludovic CHEVALIERDec 20, 2004 1:52 am 
LE LOUARNE SergeDec 20, 2004 2:03 am 
hsionDec 20, 2004 2:05 am 
Ludovic CHEVALIERDec 20, 2004 2:14 am 
Tony GALMICHEDec 20, 2004 4:35 am 
hsionDec 20, 2004 5:05 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] OOo1.1.4: Macro BDD - Ajout d'un enregistrementActions...
From:Ludovic CHEVALIER (tens@no-log.org)
Date:Dec 20, 2004 1:52:26 am
List:org.openoffice.fr.prog

Bonjour,

J'essaie d'utiliser la macro du How-to Exemples_Macros_pourBDD correspondant à
l'ajout de données (chap 8.c.). Voici les lignes qui semblent poser pb: oStatement = oConnexion.CreateStatement() SQL = "INSERT INTO " & NomTable & " VALUES(10, 100)" SQL = InputBox("Requete SQL : ","",SQL) Retour=oStatement.executeUpdate(SQL)

Avec une bdd SQLite, sous windows, une boîte d'erreur s'ouvre our dire la chose
suivante: "Runtime error BASIC Exception Type: com.sun.star.SQLException Message: table Global has 62 columns but 2 values were supplied(1)"

Quel est le pb d'après vous???

Merci de vos réponses.

Ludo