Guiguouz
Messages postés19Date d'inscriptionjeudi 17 avril 2003StatutMembreDernière intervention28 janvier 2004
-
25 juin 2003 à 07:41
metalcoder
Messages postés193Date d'inscriptionjeudi 14 février 2002StatutMembreDernière intervention25 mars 2011
-
25 juin 2003 à 10:29
'Rafraîchissement et affichage du data report
ListImp.rsCommand1.Open
ListImp.rsCommand1.Requery
ListImp.rsCommand1.Close
DBimp.Recordset.Close
DBRecherche.Recordset.Close
ReportListImp.Show
Quand j'exécute le code une première fois pas de pb. LA deuxième fois j'ai le message : Cette opération n'est pas autorisé si l'objet est ouvert et il plante sur la ligne en bleu. Je ne comprend pas car le ListImp.rsCommand1 est fermé après le rafraîchissement.
'Rafraîchissement et affichage du data report
ListImp.rsCommand1.Close
ListImp.rsCommand1.Open
ListImp.rsCommand1.Requery
ListImp.rsCommand1.Close
DBimp.Recordset.Close
DBRecherche.Recordset.Close
ReportListImp.Show
exit sub
err:
if err.number=3704 then resume next
Guiguouz
Messages postés19Date d'inscriptionjeudi 17 avril 2003StatutMembreDernière intervention28 janvier 2004 25 juin 2003 à 09:15
Hello,
J'ai aussi trouvé une parade je te la donne pour info, je test l'état de ListImp.rsCommand1, pas très joli mais cela marche aussi voici le code :
If (ListImp.rsCommand1.State = 1) Then
ListImp.rsCommand1.Close
ListImp.rsCommand1.Open
Else
ListImp.rsCommand1.Open
End If
ListImp.rsCommand1.Requery
ListImp.rsCommand1.Close
DBimp.Recordset.Close
DBRecherche.Recordset.Close
ReportListImp.Show