begin process at 2012 05 27 23:33:27
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive ASP & ASP.NET

 > 

Archives ASP & ASP.NET

 > 

Débutants

 > 

Formulaire asp sous base Access


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Formulaire asp sous base Access

mercredi 10 septembre 2003 à 17:48:31 | Formulaire asp sous base Access

Cento

Bonjour,

J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
Je débute complètement en asp, et en access, et je patauge.
Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
Si quelqu'un réussissait à me dépanner, ça serait sympa.

Merci



<%@ Language=VBScript %>
<% Option Explicit %>
<!--#include file="dbconnect.asp"-->

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>

<h1 align="center"
style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
border="0" src="../images/offres_fr.gif"></h1>
<p align="center"
style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>

<%
Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset")
objRS.Open "offrefr", objConn,3,3
Do While Not objRS.EOF
%>
<div align="center">
<center>
<table border="1" width="500">
<tr>
<td width="34%" bgcolor="#00CCFF">
<p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
</font></b></td>
<td width="66%" bgcolor="#00FFCC" colspan="2">
<p align="center" style="margin-top: 1; margin-bottom: 1"><font
face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#00FFCC" colspan="3">
<p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#00CCFF">
<p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
:</b></font></p>
</td>
<td width="25%" align="center" bgcolor="#00CCFF">
<p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
:</b></font></p>
</td>
<td width="25%" align="center" bgcolor="#00CCFF">
<p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
:</b></font></p>
</td>
</tr>
<tr>
<td width="25%" align="center"><font face="Arial" size="2">
<p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
<td width="25%" align="center"><font face="Arial" size="2">
<p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
<td width="25%" align="center"><font face="Arial" size="2">
<p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
</tr>
<tr>
<td width="75%" colspan="3"><font face="Arial" size="2">
<p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
</tr>
<tr>
<td width="75%" colspan="3">
<p align="center" style="margin-top: 1; margin-bottom: 1"><font
face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
notez la référence et cliquez sur le bouton "Postuler"</font></p>
<p align="center"
style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
<p align="center"
style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
</tr>
</table>
</center>
</div>

<%
Response.Write "<p><hr></p>"
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
<p></p>
<p align="center"
style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
size="2">Page précédente</font></a></p>

</body>

</html>
mercredi 10 septembre 2003 à 19:45:02 | Re : Formulaire asp sous base Access

omaroch


salut
je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
objRS.Open "offrefr", objConn,3,3
il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
a+


-------------------------------
Réponse au message :
-------------------------------

> Bonjour,
>
> J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> Je débute complètement en asp, et en access, et je patauge.
> Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> Si quelqu'un réussissait à me dépanner, ça serait sympa.
>
> Merci
>
>
>
> <%@ Language=VBScript %>
> <% Option Explicit %>
> <!--#include file="dbconnect.asp"-->
>
> <html>
>
> <head>
> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> </head>
>
> <body>
>
> <h1 align="center"
> style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> border="0" src="../images/offres_fr.gif"></h1>
> <p align="center"
> style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
>
> <%
> Dim objRS
> Set objRS = Server.CreateObject ("ADODB.Recordset")
> objRS.Open "offrefr", objConn,3,3
> Do While Not objRS.EOF
> %>
> <div align="center">
> <center>
> <table border="1" width="500">
> <tr>
> <td width="34%" bgcolor="#00CCFF">
> <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> </font></b></td>
> <td width="66%" bgcolor="#00FFCC" colspan="2">
> <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> </tr>
> <tr>
> <td width="100%" bgcolor="#00FFCC" colspan="3">
> <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> </tr>
> <tr>
> <td width="25%" align="center" bgcolor="#00CCFF">
> <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> :</b></font></p>
> </td>
> <td width="25%" align="center" bgcolor="#00CCFF">
> <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> :</b></font></p>
> </td>
> <td width="25%" align="center" bgcolor="#00CCFF">
> <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> :</b></font></p>
> </td>
> </tr>
> <tr>
> <td width="25%" align="center"><font face="Arial" size="2">
> <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> <td width="25%" align="center"><font face="Arial" size="2">
> <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> <td width="25%" align="center"><font face="Arial" size="2">
> <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> </tr>
> <tr>
> <td width="75%" colspan="3"><font face="Arial" size="2">
> <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> </tr>
> <tr>
> <td width="75%" colspan="3">
> <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> notez la référence et cliquez sur le bouton "Postuler"</font></p>
> <p align="center"
> style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> <p align="center"
> style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> </tr>
> </table>
> </center>
> </div>
>
> <%
> Response.Write "<p><hr></p>"
> objRS.MoveNext
> Loop
> objRS.Close
> Set objRS = Nothing
> objConn.Close
> Set objConn = Nothing
> %>
> <p></p>
> <p align="center"
> style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> size="2">Page précédente</font></a></p>
>
> </body>
>
> </html>
jeudi 11 septembre 2003 à 11:46:42 | Re : Formulaire asp sous base Access

Cento

Salut, merci d'essyaer de me donner un coup de main.
Voici la page dbconnect.asp

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Nouvelle page 1</title>
</head>

<body>

<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DSN=ifotecdb1"
objConn.Open
%>

</body>

</html>




-------------------------------
Réponse au message :
-------------------------------

>
> salut
> je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> objRS.Open "offrefr", objConn,3,3
> il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> a+
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Bonjour,
> >
> > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > Je débute complètement en asp, et en access, et je patauge.
> > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> >
> > Merci
> >
> >
> >
> > <%@ Language=VBScript %>
> > <% Option Explicit %>
> > <!--#include file="dbconnect.asp"-->
> >
> > <html>
> >
> > <head>
> > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > <meta name="ProgId" content="FrontPage.Editor.Document">
> > </head>
> >
> > <body>
> >
> > <h1 align="center"
> > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > border="0" src="../images/offres_fr.gif"></h1>
> > <p align="center"
> > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> >
> > <%
> > Dim objRS
> > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > objRS.Open "offrefr", objConn,3,3
> > Do While Not objRS.EOF
> > %>
> > <div align="center">
> > <center>
> > <table border="1" width="500">
> > <tr>
> > <td width="34%" bgcolor="#00CCFF">
> > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > </font></b></td>
> > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > </tr>
> > <tr>
> > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > </tr>
> > <tr>
> > <td width="25%" align="center" bgcolor="#00CCFF">
> > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > :</b></font></p>
> > </td>
> > <td width="25%" align="center" bgcolor="#00CCFF">
> > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > :</b></font></p>
> > </td>
> > <td width="25%" align="center" bgcolor="#00CCFF">
> > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > :</b></font></p>
> > </td>
> > </tr>
> > <tr>
> > <td width="25%" align="center"><font face="Arial" size="2">
> > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > <td width="25%" align="center"><font face="Arial" size="2">
> > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > <td width="25%" align="center"><font face="Arial" size="2">
> > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > </tr>
> > <tr>
> > <td width="75%" colspan="3"><font face="Arial" size="2">
> > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > </tr>
> > <tr>
> > <td width="75%" colspan="3">
> > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > <p align="center"
> > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > <p align="center"
> > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > </tr>
> > </table>
> > </center>
> > </div>
> >
> > <%
> > Response.Write "<p><hr></p>"
> > objRS.MoveNext
> > Loop
> > objRS.Close
> > Set objRS = Nothing
> > objConn.Close
> > Set objConn = Nothing
> > %>
> > <p></p>
> > <p align="center"
> > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > size="2">Page précédente</font></a></p>
> >
> > </body>
> >
> > </html>
>
jeudi 11 septembre 2003 à 12:03:12 | Re : Formulaire asp sous base Access

omaroch

je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
objRS.Open "offrefr", objConn,3,3
verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!



-------------------------------
Réponse au message :
-------------------------------

> Salut, merci d'essyaer de me donner un coup de main.
> Voici la page dbconnect.asp
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <title>Nouvelle page 1</title>
> </head>
>
> <body>
>
> <%
> Dim objConn
> Set objConn = Server.CreateObject("ADODB.Connection")
> objConn.ConnectionString = "DSN=ifotecdb1"
> objConn.Open
> %>
>
> </body>
>
> </html>
>
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > salut
> > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > objRS.Open "offrefr", objConn,3,3
> > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > a+
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Bonjour,
> > >
> > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > Je débute complètement en asp, et en access, et je patauge.
> > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > >
> > > Merci
> > >
> > >
> > >
> > > <%@ Language=VBScript %>
> > > <% Option Explicit %>
> > > <!--#include file="dbconnect.asp"-->
> > >
> > > <html>
> > >
> > > <head>
> > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > </head>
> > >
> > > <body>
> > >
> > > <h1 align="center"
> > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > border="0" src="../images/offres_fr.gif"></h1>
> > > <p align="center"
> > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > >
> > > <%
> > > Dim objRS
> > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > objRS.Open "offrefr", objConn,3,3
> > > Do While Not objRS.EOF
> > > %>
> > > <div align="center">
> > > <center>
> > > <table border="1" width="500">
> > > <tr>
> > > <td width="34%" bgcolor="#00CCFF">
> > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > </font></b></td>
> > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > </tr>
> > > <tr>
> > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > </tr>
> > > <tr>
> > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > :</b></font></p>
> > > </td>
> > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > :</b></font></p>
> > > </td>
> > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > :</b></font></p>
> > > </td>
> > > </tr>
> > > <tr>
> > > <td width="25%" align="center"><font face="Arial" size="2">
> > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > <td width="25%" align="center"><font face="Arial" size="2">
> > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > <td width="25%" align="center"><font face="Arial" size="2">
> > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > </tr>
> > > <tr>
> > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > </tr>
> > > <tr>
> > > <td width="75%" colspan="3">
> > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > <p align="center"
> > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > <p align="center"
> > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > </tr>
> > > </table>
> > > </center>
> > > </div>
> > >
> > > <%
> > > Response.Write "<p><hr></p>"
> > > objRS.MoveNext
> > > Loop
> > > objRS.Close
> > > Set objRS = Nothing
> > > objConn.Close
> > > Set objConn = Nothing
> > > %>
> > > <p></p>
> > > <p align="center"
> > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > size="2">Page précédente</font></a></p>
> > >
> > > </body>
> > >
> > > </html>
> >
>
jeudi 11 septembre 2003 à 12:26:04 | Re : Formulaire asp sous base Access

Cento

Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr

Si j'affiche l'interrogation SQL ça me donne ça :

SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
FROM offrefr offrefr
ORDER BY offrefr.IDoffre DESC

(en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)

Mais je ne m'y connais pas plus en ms Query qu'en access

-------------------------------
Réponse au message :
-------------------------------

> je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> objRS.Open "offrefr", objConn,3,3
> verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Salut, merci d'essyaer de me donner un coup de main.
> > Voici la page dbconnect.asp
> >
> > <html>
> >
> > <head>
> > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > <meta name="ProgId" content="FrontPage.Editor.Document">
> > <title>Nouvelle page 1</title>
> > </head>
> >
> > <body>
> >
> > <%
> > Dim objConn
> > Set objConn = Server.CreateObject("ADODB.Connection")
> > objConn.ConnectionString = "DSN=ifotecdb1"
> > objConn.Open
> > %>
> >
> > </body>
> >
> > </html>
> >
> >
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > >
> > > salut
> > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > objRS.Open "offrefr", objConn,3,3
> > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > a+
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > Bonjour,
> > > >
> > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > Je débute complètement en asp, et en access, et je patauge.
> > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > >
> > > > Merci
> > > >
> > > >
> > > >
> > > > <%@ Language=VBScript %>
> > > > <% Option Explicit %>
> > > > <!--#include file="dbconnect.asp"-->
> > > >
> > > > <html>
> > > >
> > > > <head>
> > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > </head>
> > > >
> > > > <body>
> > > >
> > > > <h1 align="center"
> > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > <p align="center"
> > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > >
> > > > <%
> > > > Dim objRS
> > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > objRS.Open "offrefr", objConn,3,3
> > > > Do While Not objRS.EOF
> > > > %>
> > > > <div align="center">
> > > > <center>
> > > > <table border="1" width="500">
> > > > <tr>
> > > > <td width="34%" bgcolor="#00CCFF">
> > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > </font></b></td>
> > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > </tr>
> > > > <tr>
> > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > </tr>
> > > > <tr>
> > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > :</b></font></p>
> > > > </td>
> > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > :</b></font></p>
> > > > </td>
> > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > :</b></font></p>
> > > > </td>
> > > > </tr>
> > > > <tr>
> > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > </tr>
> > > > <tr>
> > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > </tr>
> > > > <tr>
> > > > <td width="75%" colspan="3">
> > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > <p align="center"
> > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > <p align="center"
> > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > </tr>
> > > > </table>
> > > > </center>
> > > > </div>
> > > >
> > > > <%
> > > > Response.Write "<p><hr></p>"
> > > > objRS.MoveNext
> > > > Loop
> > > > objRS.Close
> > > > Set objRS = Nothing
> > > > objConn.Close
> > > > Set objConn = Nothing
> > > > %>
> > > > <p></p>
> > > > <p align="center"
> > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > size="2">Page précédente</font></a></p>
> > > >
> > > > </body>
> > > >
> > > > </html>
> > >
> >
>
jeudi 11 septembre 2003 à 13:46:22 | Re : Formulaire asp sous base Access

omaroch

est ce que ta essayé d'enlever DESC car si tu ne met rien il te sort les données dans lordre dans lequel il sont rentré du dernier au premier, si ca ne marche pas on pourra bidouller autre chose.

si ta un bouquin asp cherche si tu peux lire le recordset depuis la fin c a dire dans le sens inverse, je pense que tu peut faire objRS.MoveLast et la ca tenvoi vers le dernier enregistrement et de la tu commence a afficher dans le sens contraire de celui que tu actuellement donc ca te donnera lórdre inverse de ce que tá mtn!!



-------------------------------
Réponse au message :
-------------------------------

> Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr
>
> Si j'affiche l'interrogation SQL ça me donne ça :
>
> SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> FROM offrefr offrefr
> ORDER BY offrefr.IDoffre DESC
>
> (en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)
>
> Mais je ne m'y connais pas plus en ms Query qu'en access
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> > objRS.Open "offrefr", objConn,3,3
> > verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
> >
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Salut, merci d'essyaer de me donner un coup de main.
> > > Voici la page dbconnect.asp
> > >
> > > <html>
> > >
> > > <head>
> > > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > <title>Nouvelle page 1</title>
> > > </head>
> > >
> > > <body>
> > >
> > > <%
> > > Dim objConn
> > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > objConn.ConnectionString = "DSN=ifotecdb1"
> > > objConn.Open
> > > %>
> > >
> > > </body>
> > >
> > > </html>
> > >
> > >
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > >
> > > > salut
> > > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > > objRS.Open "offrefr", objConn,3,3
> > > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > > a+
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > Bonjour,
> > > > >
> > > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > > Je débute complètement en asp, et en access, et je patauge.
> > > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > > >
> > > > > Merci
> > > > >
> > > > >
> > > > >
> > > > > <%@ Language=VBScript %>
> > > > > <% Option Explicit %>
> > > > > <!--#include file="dbconnect.asp"-->
> > > > >
> > > > > <html>
> > > > >
> > > > > <head>
> > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > </head>
> > > > >
> > > > > <body>
> > > > >
> > > > > <h1 align="center"
> > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > > <p align="center"
> > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > > >
> > > > > <%
> > > > > Dim objRS
> > > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > > objRS.Open "offrefr", objConn,3,3
> > > > > Do While Not objRS.EOF
> > > > > %>
> > > > > <div align="center">
> > > > > <center>
> > > > > <table border="1" width="500">
> > > > > <tr>
> > > > > <td width="34%" bgcolor="#00CCFF">
> > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > > </font></b></td>
> > > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > > :</b></font></p>
> > > > > </td>
> > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > > :</b></font></p>
> > > > > </td>
> > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > > :</b></font></p>
> > > > > </td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td width="75%" colspan="3">
> > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > > <p align="center"
> > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > > <p align="center"
> > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > > </tr>
> > > > > </table>
> > > > > </center>
> > > > > </div>
> > > > >
> > > > > <%
> > > > > Response.Write "<p><hr></p>"
> > > > > objRS.MoveNext
> > > > > Loop
> > > > > objRS.Close
> > > > > Set objRS = Nothing
> > > > > objConn.Close
> > > > > Set objConn = Nothing
> > > > > %>
> > > > > <p></p>
> > > > > <p align="center"
> > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > > size="2">Page précédente</font></a></p>
> > > > >
> > > > > </body>
> > > > >
> > > > > </html>
> > > >
> > >
> >
>
jeudi 11 septembre 2003 à 14:39:46 | Re : Formulaire asp sous base Access

Cento

Bah si je ne met pas desc, ça me donne ça :

SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
FROM offrefr offrefr

En ce qui concerne MoveLast, en fait moi j'avais essayé avec MovePrevious et ça ne fonctionnait pas (je n'avais que la première entrée qui s'affichait, puis un message d'erreur)

Sinon je n'ai pas de bouquin d'asp ce qui complique encore plus ma tache


-------------------------------
Réponse au message :
-------------------------------

> est ce que ta essayé d'enlever DESC car si tu ne met rien il te sort les données dans lordre dans lequel il sont rentré du dernier au premier, si ca ne marche pas on pourra bidouller autre chose.
>
> si ta un bouquin asp cherche si tu peux lire le recordset depuis la fin c a dire dans le sens inverse, je pense que tu peut faire objRS.MoveLast et la ca tenvoi vers le dernier enregistrement et de la tu commence a afficher dans le sens contraire de celui que tu actuellement donc ca te donnera lórdre inverse de ce que tá mtn!!
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr
> >
> > Si j'affiche l'interrogation SQL ça me donne ça :
> >
> > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > FROM offrefr offrefr
> > ORDER BY offrefr.IDoffre DESC
> >
> > (en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)
> >
> > Mais je ne m'y connais pas plus en ms Query qu'en access
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> > > objRS.Open "offrefr", objConn,3,3
> > > verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
> > >
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > Salut, merci d'essyaer de me donner un coup de main.
> > > > Voici la page dbconnect.asp
> > > >
> > > > <html>
> > > >
> > > > <head>
> > > > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > <title>Nouvelle page 1</title>
> > > > </head>
> > > >
> > > > <body>
> > > >
> > > > <%
> > > > Dim objConn
> > > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > > objConn.ConnectionString = "DSN=ifotecdb1"
> > > > objConn.Open
> > > > %>
> > > >
> > > > </body>
> > > >
> > > > </html>
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > >
> > > > > salut
> > > > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > > > objRS.Open "offrefr", objConn,3,3
> > > > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > > > a+
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > Bonjour,
> > > > > >
> > > > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > > > Je débute complètement en asp, et en access, et je patauge.
> > > > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > > > >
> > > > > > Merci
> > > > > >
> > > > > >
> > > > > >
> > > > > > <%@ Language=VBScript %>
> > > > > > <% Option Explicit %>
> > > > > > <!--#include file="dbconnect.asp"-->
> > > > > >
> > > > > > <html>
> > > > > >
> > > > > > <head>
> > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > </head>
> > > > > >
> > > > > > <body>
> > > > > >
> > > > > > <h1 align="center"
> > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > > > <p align="center"
> > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > > > >
> > > > > > <%
> > > > > > Dim objRS
> > > > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > Do While Not objRS.EOF
> > > > > > %>
> > > > > > <div align="center">
> > > > > > <center>
> > > > > > <table border="1" width="500">
> > > > > > <tr>
> > > > > > <td width="34%" bgcolor="#00CCFF">
> > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > > > </font></b></td>
> > > > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > > > </tr>
> > > > > > <tr>
> > > > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > > > </tr>
> > > > > > <tr>
> > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > > > :</b></font></p>
> > > > > > </td>
> > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > > > :</b></font></p>
> > > > > > </td>
> > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > > > :</b></font></p>
> > > > > > </td>
> > > > > > </tr>
> > > > > > <tr>
> > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > > > </tr>
> > > > > > <tr>
> > > > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > > > </tr>
> > > > > > <tr>
> > > > > > <td width="75%" colspan="3">
> > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > > > <p align="center"
> > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > > > <p align="center"
> > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > > > </tr>
> > > > > > </table>
> > > > > > </center>
> > > > > > </div>
> > > > > >
> > > > > > <%
> > > > > > Response.Write "<p><hr></p>"
> > > > > > objRS.MoveNext
> > > > > > Loop
> > > > > > objRS.Close
> > > > > > Set objRS = Nothing
> > > > > > objConn.Close
> > > > > > Set objConn = Nothing
> > > > > > %>
> > > > > > <p></p>
> > > > > > <p align="center"
> > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > > > size="2">Page précédente</font></a></p>
> > > > > >
> > > > > > </body>
> > > > > >
> > > > > > </html>
> > > > >
> > > >
> > >
> >
>
jeudi 11 septembre 2003 à 15:41:11 | Re : Formulaire asp sous base Access

omaroch


bon la bidouille que je te propose mtn cést dimserer sur la BD un champ de numero automatique qui se sera incremeter a chaque fois que tu fais un enregistrement sur ta base et puis par la suite tu fais
ORDER BY num DESC
et la tu es sur davoir ton ordre decroissant du nouveau a l'ancien
courage tu vas y arriver


-------------------------------
Réponse au message :
-------------------------------

> Bah si je ne met pas desc, ça me donne ça :
>
> SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> FROM offrefr offrefr
>
> En ce qui concerne MoveLast, en fait moi j'avais essayé avec MovePrevious et ça ne fonctionnait pas (je n'avais que la première entrée qui s'affichait, puis un message d'erreur)
>
> Sinon je n'ai pas de bouquin d'asp ce qui complique encore plus ma tache
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > est ce que ta essayé d'enlever DESC car si tu ne met rien il te sort les données dans lordre dans lequel il sont rentré du dernier au premier, si ca ne marche pas on pourra bidouller autre chose.
> >
> > si ta un bouquin asp cherche si tu peux lire le recordset depuis la fin c a dire dans le sens inverse, je pense que tu peut faire objRS.MoveLast et la ca tenvoi vers le dernier enregistrement et de la tu commence a afficher dans le sens contraire de celui que tu actuellement donc ca te donnera lórdre inverse de ce que tá mtn!!
> >
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr
> > >
> > > Si j'affiche l'interrogation SQL ça me donne ça :
> > >
> > > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > > FROM offrefr offrefr
> > > ORDER BY offrefr.IDoffre DESC
> > >
> > > (en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)
> > >
> > > Mais je ne m'y connais pas plus en ms Query qu'en access
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> > > > objRS.Open "offrefr", objConn,3,3
> > > > verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
> > > >
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > Salut, merci d'essyaer de me donner un coup de main.
> > > > > Voici la page dbconnect.asp
> > > > >
> > > > > <html>
> > > > >
> > > > > <head>
> > > > > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > <title>Nouvelle page 1</title>
> > > > > </head>
> > > > >
> > > > > <body>
> > > > >
> > > > > <%
> > > > > Dim objConn
> > > > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > > > objConn.ConnectionString = "DSN=ifotecdb1"
> > > > > objConn.Open
> > > > > %>
> > > > >
> > > > > </body>
> > > > >
> > > > > </html>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > >
> > > > > > salut
> > > > > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > > > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > > > > a+
> > > > > >
> > > > > >
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > > Bonjour,
> > > > > > >
> > > > > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > > > > Je débute complètement en asp, et en access, et je patauge.
> > > > > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > > > > >
> > > > > > > Merci
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > <%@ Language=VBScript %>
> > > > > > > <% Option Explicit %>
> > > > > > > <!--#include file="dbconnect.asp"-->
> > > > > > >
> > > > > > > <html>
> > > > > > >
> > > > > > > <head>
> > > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > > </head>
> > > > > > >
> > > > > > > <body>
> > > > > > >
> > > > > > > <h1 align="center"
> > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > > > > <p align="center"
> > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > > > > >
> > > > > > > <%
> > > > > > > Dim objRS
> > > > > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > > Do While Not objRS.EOF
> > > > > > > %>
> > > > > > > <div align="center">
> > > > > > > <center>
> > > > > > > <table border="1" width="500">
> > > > > > > <tr>
> > > > > > > <td width="34%" bgcolor="#00CCFF">
> > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > > > > </font></b></td>
> > > > > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > > > > </tr>
> > > > > > > <tr>
> > > > > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > > > > </tr>
> > > > > > > <tr>
> > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > > > > :</b></font></p>
> > > > > > > </td>
> > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > > > > :</b></font></p>
> > > > > > > </td>
> > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > > > > :</b></font></p>
> > > > > > > </td>
> > > > > > > </tr>
> > > > > > > <tr>
> > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > > > > </tr>
> > > > > > > <tr>
> > > > > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > > > > </tr>
> > > > > > > <tr>
> > > > > > > <td width="75%" colspan="3">
> > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > > > > <p align="center"
> > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > > > > <p align="center"
> > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > > > > </tr>
> > > > > > > </table>
> > > > > > > </center>
> > > > > > > </div>
> > > > > > >
> > > > > > > <%
> > > > > > > Response.Write "<p><hr></p>"
> > > > > > > objRS.MoveNext
> > > > > > > Loop
> > > > > > > objRS.Close
> > > > > > > Set objRS = Nothing
> > > > > > > objConn.Close
> > > > > > > Set objConn = Nothing
> > > > > > > %>
> > > > > > > <p></p>
> > > > > > > <p align="center"
> > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > > > > size="2">Page précédente</font></a></p>
> > > > > > >
> > > > > > > </body>
> > > > > > >
> > > > > > > </html>
> > > > > >
> > > > >
> > > >
> > >
> >
>
jeudi 11 septembre 2003 à 16:04:31 | Re : Formulaire asp sous base Access

Cento


mais IDoffre, ça doit déjà être ça !
puisque c'est par ça que je triais en arrivant sur msQuery

quote "(en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)"

mais à partir de query je vois pas ce que je pourrais changer à ça, puisque je n'arrive pas à l'avoir avec access

-------------------------------
Réponse au message :
-------------------------------

>
> bon la bidouille que je te propose mtn cést dimserer sur la BD un champ de numero automatique qui se sera incremeter a chaque fois que tu fais un enregistrement sur ta base et puis par la suite tu fais
> ORDER BY num DESC
> et la tu es sur davoir ton ordre decroissant du nouveau a l'ancien
> courage tu vas y arriver
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Bah si je ne met pas desc, ça me donne ça :
> >
> > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > FROM offrefr offrefr
> >
> > En ce qui concerne MoveLast, en fait moi j'avais essayé avec MovePrevious et ça ne fonctionnait pas (je n'avais que la première entrée qui s'affichait, puis un message d'erreur)
> >
> > Sinon je n'ai pas de bouquin d'asp ce qui complique encore plus ma tache
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > est ce que ta essayé d'enlever DESC car si tu ne met rien il te sort les données dans lordre dans lequel il sont rentré du dernier au premier, si ca ne marche pas on pourra bidouller autre chose.
> > >
> > > si ta un bouquin asp cherche si tu peux lire le recordset depuis la fin c a dire dans le sens inverse, je pense que tu peut faire objRS.MoveLast et la ca tenvoi vers le dernier enregistrement et de la tu commence a afficher dans le sens contraire de celui que tu actuellement donc ca te donnera lórdre inverse de ce que tá mtn!!
> > >
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr
> > > >
> > > > Si j'affiche l'interrogation SQL ça me donne ça :
> > > >
> > > > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > > > FROM offrefr offrefr
> > > > ORDER BY offrefr.IDoffre DESC
> > > >
> > > > (en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)
> > > >
> > > > Mais je ne m'y connais pas plus en ms Query qu'en access
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> > > > > objRS.Open "offrefr", objConn,3,3
> > > > > verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > Salut, merci d'essyaer de me donner un coup de main.
> > > > > > Voici la page dbconnect.asp
> > > > > >
> > > > > > <html>
> > > > > >
> > > > > > <head>
> > > > > > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > <title>Nouvelle page 1</title>
> > > > > > </head>
> > > > > >
> > > > > > <body>
> > > > > >
> > > > > > <%
> > > > > > Dim objConn
> > > > > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > > > > objConn.ConnectionString = "DSN=ifotecdb1"
> > > > > > objConn.Open
> > > > > > %>
> > > > > >
> > > > > > </body>
> > > > > >
> > > > > > </html>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > >
> > > > > > > salut
> > > > > > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > > > > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > > > > > a+
> > > > > > >
> > > > > > >
> > > > > > > -------------------------------
> > > > > > > Réponse au message :
> > > > > > > -------------------------------
> > > > > > >
> > > > > > > > Bonjour,
> > > > > > > >
> > > > > > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > > > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > > > > > Je débute complètement en asp, et en access, et je patauge.
> > > > > > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > > > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > > > > > >
> > > > > > > > Merci
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > <%@ Language=VBScript %>
> > > > > > > > <% Option Explicit %>
> > > > > > > > <!--#include file="dbconnect.asp"-->
> > > > > > > >
> > > > > > > > <html>
> > > > > > > >
> > > > > > > > <head>
> > > > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > > > </head>
> > > > > > > >
> > > > > > > > <body>
> > > > > > > >
> > > > > > > > <h1 align="center"
> > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > > > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > > > > > <p align="center"
> > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > > > > > >
> > > > > > > > <%
> > > > > > > > Dim objRS
> > > > > > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > > > Do While Not objRS.EOF
> > > > > > > > %>
> > > > > > > > <div align="center">
> > > > > > > > <center>
> > > > > > > > <table border="1" width="500">
> > > > > > > > <tr>
> > > > > > > > <td width="34%" bgcolor="#00CCFF">
> > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > > > > > </font></b></td>
> > > > > > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > > > > > </tr>
> > > > > > > > <tr>
> > > > > > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > > > > > </tr>
> > > > > > > > <tr>
> > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > > > > > :</b></font></p>
> > > > > > > > </td>
> > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > > > > > :</b></font></p>
> > > > > > > > </td>
> > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > > > > > :</b></font></p>
> > > > > > > > </td>
> > > > > > > > </tr>
> > > > > > > > <tr>
> > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > > > > > </tr>
> > > > > > > > <tr>
> > > > > > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > > > > > </tr>
> > > > > > > > <tr>
> > > > > > > > <td width="75%" colspan="3">
> > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > > > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > > > > > <p align="center"
> > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > > > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > > > > > <p align="center"
> > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > > > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > > > > > </tr>
> > > > > > > > </table>
> > > > > > > > </center>
> > > > > > > > </div>
> > > > > > > >
> > > > > > > > <%
> > > > > > > > Response.Write "<p><hr></p>"
> > > > > > > > objRS.MoveNext
> > > > > > > > Loop
> > > > > > > > objRS.Close
> > > > > > > > Set objRS = Nothing
> > > > > > > > objConn.Close
> > > > > > > > Set objConn = Nothing
> > > > > > > > %>
> > > > > > > > <p></p>
> > > > > > > > <p align="center"
> > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > > > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > > > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > > > > > size="2">Page précédente</font></a></p>
> > > > > > > >
> > > > > > > > </body>
> > > > > > > >
> > > > > > > > </html>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
jeudi 11 septembre 2003 à 16:48:53 | Re : Formulaire asp sous base Access

omaroch


ca mettonerai que ce soit ca je sais pas au fait ca depend du num qui est affiché, est ce que quqnd tu fais un nouvel enregistrement est ce que cést toi qui fait rentrer le IDoffre ou bien ca se fait automatiquement !!

si c automatique dans ce cas envoi moi ta base de données pour que je puisse y jeter un ptit coup doeil ok voici mon adress mail
omaroch@hotmail.com


-------------------------------
Réponse au message :
-------------------------------

>
> mais IDoffre, ça doit déjà être ça !
> puisque c'est par ça que je triais en arrivant sur msQuery
>
> quote "(en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)"
>
> mais à partir de query je vois pas ce que je pourrais changer à ça, puisque je n'arrive pas à l'avoir avec access
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > bon la bidouille que je te propose mtn cést dimserer sur la BD un champ de numero automatique qui se sera incremeter a chaque fois que tu fais un enregistrement sur ta base et puis par la suite tu fais
> > ORDER BY num DESC
> > et la tu es sur davoir ton ordre decroissant du nouveau a l'ancien
> > courage tu vas y arriver
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Bah si je ne met pas desc, ça me donne ça :
> > >
> > > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > > FROM offrefr offrefr
> > >
> > > En ce qui concerne MoveLast, en fait moi j'avais essayé avec MovePrevious et ça ne fonctionnait pas (je n'avais que la première entrée qui s'affichait, puis un message d'erreur)
> > >
> > > Sinon je n'ai pas de bouquin d'asp ce qui complique encore plus ma tache
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > est ce que ta essayé d'enlever DESC car si tu ne met rien il te sort les données dans lordre dans lequel il sont rentré du dernier au premier, si ca ne marche pas on pourra bidouller autre chose.
> > > >
> > > > si ta un bouquin asp cherche si tu peux lire le recordset depuis la fin c a dire dans le sens inverse, je pense que tu peut faire objRS.MoveLast et la ca tenvoi vers le dernier enregistrement et de la tu commence a afficher dans le sens contraire de celui que tu actuellement donc ca te donnera lórdre inverse de ce que tá mtn!!
> > > >
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > Le problème, c'est que access ne veut pas ouvrir la base de données. Je n'ai pu que l'ouvrir par excel en passant par msQuery. Là je vois bien qu'il y a trois tables dont offrefr
> > > > >
> > > > > Si j'affiche l'interrogation SQL ça me donne ça :
> > > > >
> > > > > SELECT offrefr.IDoffre, offrefr.ref, offrefr.date, offrefr.domaine, offrefr.poste, offrefr.lieu, offrefr.durée, offrefr.détail
> > > > > FROM offrefr offrefr
> > > > > ORDER BY offrefr.IDoffre DESC
> > > > >
> > > > > (en passant par Query, j'ai demandé à ce que ça soit ordonnés par IDoffre desc)
> > > > >
> > > > > Mais je ne m'y connais pas plus en ms Query qu'en access
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > je ne mattendais pas a voir le ficheir dbconnect comme ca, mais il me parit bon ce qui me laisse un peu reflechir cést le fait de ne pas trouver la requete sur ton code, car sur le code il ouvre bien qq chose avec l'instruction
> > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > verifie si sur la base de données il y a une requete aui s'appele offrefr, je pense qu'elle doit etre sur la base sinon je ne sais pas dou elle peut venir!!
> > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > > Salut, merci d'essyaer de me donner un coup de main.
> > > > > > > Voici la page dbconnect.asp
> > > > > > >
> > > > > > > <html>
> > > > > > >
> > > > > > > <head>
> > > > > > > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> > > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > > <title>Nouvelle page 1</title>
> > > > > > > </head>
> > > > > > >
> > > > > > > <body>
> > > > > > >
> > > > > > > <%
> > > > > > > Dim objConn
> > > > > > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > > > > > objConn.ConnectionString = "DSN=ifotecdb1"
> > > > > > > objConn.Open
> > > > > > > %>
> > > > > > >
> > > > > > > </body>
> > > > > > >
> > > > > > > </html>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > -------------------------------
> > > > > > > Réponse au message :
> > > > > > > -------------------------------
> > > > > > >
> > > > > > > >
> > > > > > > > salut
> > > > > > > > je pense que la requete sql est incluse ds le fichier dbconnect.asp car sur la ligne suivante
> > > > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > > > il est entrain dappeler la requete "offrefr" pour mettre les données dans le recordset.
> > > > > > > > pour faire ton tri tu dois le faire au niveaux de la requete!! si tu veux envoi moi le contenu du fichier dbconnect.asp pour que je puisse voir comment ca marche
> > > > > > > > a+
> > > > > > > >
> > > > > > > >
> > > > > > > > -------------------------------
> > > > > > > > Réponse au message :
> > > > > > > > -------------------------------
> > > > > > > >
> > > > > > > > > Bonjour,
> > > > > > > > >
> > > > > > > > > J'ai le code suivant (dont je ne suis pas l'auteur) et je dois le modifier. Ce code affiche un formulaire qui lit une base de données access.
> > > > > > > > > Les résultats sont affichés dans l'ordre croissant d'envoi, c'est à dire que le plus récent se met à la fin. Or, je dois le modifier pour que chaque nouvelle entrée se mette au début.
> > > > > > > > > Je débute complètement en asp, et en access, et je patauge.
> > > > > > > > > Je tiens à signaler que ce code fonctionne, même si comme on me l'a déjà fait remarqué il n'y a pas de requête SQL.
> > > > > > > > > Si quelqu'un réussissait à me dépanner, ça serait sympa.
> > > > > > > > >
> > > > > > > > > Merci
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > <%@ Language=VBScript %>
> > > > > > > > > <% Option Explicit %>
> > > > > > > > > <!--#include file="dbconnect.asp"-->
> > > > > > > > >
> > > > > > > > > <html>
> > > > > > > > >
> > > > > > > > > <head>
> > > > > > > > > <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> > > > > > > > > <meta name="ProgId" content="FrontPage.Editor.Document">
> > > > > > > > > </head>
> > > > > > > > >
> > > > > > > > > <body>
> > > > > > > > >
> > > > > > > > > <h1 align="center"
> > > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><img
> > > > > > > > > border="0" src="../images/offres_fr.gif"></h1>
> > > > > > > > > <p align="center"
> > > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"></p>
> > > > > > > > >
> > > > > > > > > <%
> > > > > > > > > Dim objRS
> > > > > > > > > Set objRS = Server.CreateObject ("ADODB.Recordset")
> > > > > > > > > objRS.Open "offrefr", objConn,3,3
> > > > > > > > > Do While Not objRS.EOF
> > > > > > > > > %>
> > > > > > > > > <div align="center">
> > > > > > > > > <center>
> > > > > > > > > <table border="1" width="500">
> > > > > > > > > <tr>
> > > > > > > > > <td width="34%" bgcolor="#00CCFF">
> > > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > > > face="Arial" size="2">Réf. </font><font face="Arial" size="2"><%Response.Write objRS("ref")%>
> > > > > > > > > </font></b></td>
> > > > > > > > > <td width="66%" bgcolor="#00FFCC" colspan="2">
> > > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > > > face="Arial" size="2"><b><% Response.Write objRS("domaine") %></b></font></td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="100%" bgcolor="#00FFCC" colspan="3">
> > > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><b><font
> > > > > > > > > face="Arial" size="2"><%Response.Write objRS("poste") %></font></b></td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Lieu
> > > > > > > > > :</b></font></p>
> > > > > > > > > </td>
> > > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Date
> > > > > > > > > :</b></font></p>
> > > > > > > > > </td>
> > > > > > > > > <td width="25%" align="center" bgcolor="#00CCFF">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><font face="Arial" size="2"><b>Durée
> > > > > > > > > :</b></font></p>
> > > > > > > > > </td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("lieu") %></font></td>
> > > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("date") %></font></td>
> > > > > > > > > <td width="25%" align="center"><font face="Arial" size="2">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("durée") %></font></td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="75%" colspan="3"><font face="Arial" size="2">
> > > > > > > > > <p style="margin-top: 1; margin-bottom: 1"><%Response.Write objRS("détail") %></font></td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="75%" colspan="3">
> > > > > > > > > <p align="center" style="margin-top: 1; margin-bottom: 1"><font
> > > > > > > > > face="Arial" size="1" color="#FF0000">Si cette offre vous intéresse,
> > > > > > > > > notez la référence et cliquez sur le bouton "Postuler"</font></p>
> > > > > > > > > <p align="center"
> > > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><a
> > > > > > > > > href="cv_fr.htm"><img border="0" src="../images/wb01488_.gif"></a></p>
> > > > > > > > > <p align="center"
> > > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"><font
> > > > > > > > > size="1" face="Arial" color="#FF0000"><b>Postuler</b></font></td>
> > > > > > > > > </tr>
> > > > > > > > > </table>
> > > > > > > > > </center>
> > > > > > > > > </div>
> > > > > > > > >
> > > > > > > > > <%
> > > > > > > > > Response.Write "<p><hr></p>"
> > > > > > > > > objRS.MoveNext
> > > > > > > > > Loop
> > > > > > > > > objRS.Close
> > > > > > > > > Set objRS = Nothing
> > > > > > > > > objConn.Close
> > > > > > > > > Set objConn = Nothing
> > > > > > > > > %>
> > > > > > > > > <p></p>
> > > > > > > > > <p align="center"
> > > > > > > > > style="word-spacing: 0; line-height: 100%; text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 1; margin-bottom: 1"> <a
> > > > > > > > > href="emploi_fr.htm" target="_self"><img border="0" src="../images/wb01624_.gif"
> > > > > > > > > align="top"></a>  <a href="emploi_fr.htm" target="_self"><font face="Arial"
> > > > > > > > > size="2">Page précédente</font></a></p>
> > > > > > > > >
> > > > > > > > > </body>
> > > > > > > > >
> > > > > > > > > </html>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

1 2 3 4

Cette discussion est classée dans : access, base, asp, code, formulaire


Répondre à ce message

Sujets en rapport avec ce message

Comment Modifier une Base (acccess) via formulaire ASP [ par battleduck91 ] Bonjour à tous,Je viens ici poster ce message car je recherche déséspérément une solution. Voilà, je vais essayer de poser mon problème clairement :- ASP + Base Access protégée par mdp [ par noarno ] BonjourVoila tout est +- dans le titre, je souhaiterais me connecterà une base access protégée par un mot de passe(la base). J'utilise actuellement un Creer une base access avec asp.net [ par Kenou ] Bonjour,Peut-on créer une base access (sinon une base sql) par code avec asp.net.J'ai réussi à créer des tables dans une base access existante avec ad datagrid + access --> extraction [ par julio1801 ] bonjour, (je suis débutant en asp.net)voila j'ai un base de donnée access que je fais afficher en asp.net dans une datagrid.J'aimerai pouvour e ASP-Access-Outlook [ par dmoulard ] Bonjour, j'essais de créer une page Asp qui ce connecte à une base de donnée Access, laquelle (bd) contient une table lié à un dossier d'outlook (pas Probleme d'ajout d'une ligne dans une base de donnée Access avec asp.net [ par Silverd ] Bon j'ai un petit problème : Je dois me mettre au langage ASP.NET pour un stage et donc je me suis acheter un bouquin.Dans ce bouquin, j'ai trouver un [ASP-ACCESS] Pb connexion bdd [ par fal91 ] Salut,  Je n'arrive pas a me connecter a ma base access. Quand je teste ma base en local j'obtient le message suivant :  Microsoft OLE DB Provider for ASP.net 2 Problème avec champ d'une base de données à evaluer [ par lutin2004 ] Hello,voilà mon prob:je travaille sur une base access de laquelle je sors certains champs. J'aimerais afficher une gridview avec à l'intérieur des inf Transfert de données vers une base de données Access via un formulaire (ASP) [ par bfhedi ] Salut les mecs;Voila, chui novice dans ASP, donc j'utilise Dremweaver MX2004 pour me connecter à une base de données composée d'une seule table (31 ch pb de connexion access [ par magababs ] salut j'ai repris un site en asp et lorque j'essaye de modifier ma base de donnée access au traver du site il m'apparait ce message:Erreur de compilat


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 2,902 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales