1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Public Function Support(Projet As Long) As String
Dim res As DAO.Recordset
Dim SQL As String
'Selectionne les participant du projet
SQL = "SELECT Support FROM Support WHERE Chrono=" & Projet
Set res = CurrentDb.OpenRecordset(SQL)
'Concatene les différents enregistrement
While Not res.EOF
Support = Support & res.Fields(0).Value & " + "
res.MoveNext
Wend
'Enleve le dernier espace
Support = Left(Support, Len(Support) - 3)
'libere la mémoire
Set res = Nothing
End Function
Public Function Expose(Projet As Long) As String
Dim res As DAO.Recordset
Dim SQL As String
Dim var As String
var = "Présentation autour de la maquette"
'Selectionne les participant du projet
SQL = "SELECT Expose FROM Expose WHERE Chrono= " & Projet & " And Expose<>'Présentation autour de la maquette'"
Set res = CurrentDb.OpenRecordset(SQL)
'Concatene les différents enregistrement
While Not res.EOF
Expose = Expose & res.Fields(0).Value & " + "
res.MoveNext
Wend
'Enleve le dernier espace
If Expose <> Null Then
Expose = Left(Expose, Len(Expose) - 3)
End If
'libere la mémoire
Set res = Nothing
End Function |
Partager