Hlep

Résolu
cs_sny2009 Messages postés 28 Date d'inscription mercredi 25 février 2009 Statut Membre Dernière intervention 1 mai 2012 - 2 avril 2009 à 10:17
cs_sny2009 Messages postés 28 Date d'inscription mercredi 25 février 2009 Statut Membre Dernière intervention 1 mai 2012 - 2 avril 2009 à 15:32
bj
je écrié le requête suivant :
rs1.Open "select accompagnement.[n_ piece] as [N piece],expert.nom as [Nom] ,accompagnement.[contenue_seance] as[Contenue de seance] ,action as [Action],accompagnement.[date_cre] as [Date] from accompagnement,expert where  cin ='" & Val(vs1.TextMatrix(vs1.Row, 0)) & "' and expert.code_exp=accompagnement.code_exp  ", cn, 1, 2
Set accompagnement.vs1.DataSource = rs1
mais il a une erreur  pourquoi   

6 réponses

cs_Jack Messages postés 14006 Date d'inscription samedi 29 décembre 2001 Statut Modérateur Dernière intervention 28 août 2015 79
2 avril 2009 à 10:28
Salut
Merci pour le titre de toa question "Hlep" : Très parlant !
Si tu as une erreur, tu pourrais nous dire laquelle (n° et texte), on n'est pas marabou !
Et sur quelle ligne ?

Un peu de reflection sur ta requète t'aurait permis de voir que :
   "...   where  cin = ..."      Le nom de la table n'est pas précisé
   Si le champ "cin" de ta DB est de type numérique, il ne faut pas mettre de '

Vala
Jack, MVP VB
NB : Je ne répondrai pas aux messages privés

<hr />Le savoir est la seule matière qui s'accroit quand on la partage (Socrate)
3
Renfield Messages postés 17287 Date d'inscription mercredi 2 janvier 2002 Statut Modérateur Dernière intervention 27 septembre 2021 74
2 avril 2009 à 10:55
vire les quotes :

...where cin =" & Str$(Val(vs1.TextMatrix(vs1.Row, 0))) & " and...
3
cs_sny2009 Messages postés 28 Date d'inscription mercredi 25 février 2009 Statut Membre Dernière intervention 1 mai 2012
2 avril 2009 à 10:40
le erreur est :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" /><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 1 6 1 0 1 1 1 1 1;
mso-font-alt:新細明體;
mso-font-charset:136;
mso-generic-font-family:auto;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:1 134742016 16 0 1048576 0;}
@font-face
{font-family:Calibri;
mso-font-alt:"Century Gothic";
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
{font-family:"\@PMingLiU";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:136;
mso-generic-font-family:auto;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:1 134742016 16 0 1048576 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:10.0pt;
margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:Calibri;
mso-fareast-font-family:PMingLiU;
mso-bidi-font-family:Arial;
mso-fareast-language:ZH-TW;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
--></style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->type de donnees incompatible dans
l’expression du critere
0
cs_sny2009 Messages postés 28 Date d'inscription mercredi 25 février 2009 Statut Membre Dernière intervention 1 mai 2012
2 avril 2009 à 11:03
merciiiiiiiiiiiiiiiiiiiiiii
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_Jack Messages postés 14006 Date d'inscription samedi 29 décembre 2001 Statut Modérateur Dernière intervention 28 août 2015 79
2 avril 2009 à 15:29
sny2009 : La prochaine fois, lit toutes les lignes de la réponse, car je te l'avais dit dans mon premier message
0
cs_sny2009 Messages postés 28 Date d'inscription mercredi 25 février 2009 Statut Membre Dernière intervention 1 mai 2012
2 avril 2009 à 15:32
désoler
 
oui je sais et merci beaucoup
0
Rejoignez-nous