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
|
Public Sub publipostage(ByVal IDreport As Integer, ByVal ltmc As String, ByVal contractn As Integer, _
ByVal MCConfig As String, ByVal MCNumber As String, ByVal RobotConfig As String, ByVal RobotNumber As String, _
ByVal customern As String, ByVal Mold1n As String, ByVal mold2n As String, ByVal hmr As String, _
ByVal datum As Date, ByVal techn As String, ByVal custcont As String)
Dim listres As String
listres = "SELECT ResID, ReportID, QuestID, Comments, Status, Quote, pic1, pic2, pic3, pic4, OrderID FROM RESULTS WHERE ReportID = " & IDreport & " ORDER BY ResID;"
Set listresrs = db.OpenRecordset(listres, DB_OPEN_SNAPSHOT)
If listresrs.RecordCount <> 0 Then
listresrs.MoveLast
l = listresrs(0).Value
listresrs.MoveFirst
f = listresrs(0).Value
End If
opprogresssbar
listresrs.MoveFirst
'OpenWord
Set myWord = New Word.Application
'Open the doc in read only and hide it
With myWord..... |
Partager