Hi all,
I was wondering how to make my form look for other tables as well. Actually the form uses one table, but I want it to use 2 other tables, making it 3 tables in total.
Here's my code:
for now it uses the Sql = "SELECT * FROM Tb_1stRenewalTMP" line,
But I want also tu use the tb Tb_2ndRenewalTMP and Tb_3rdRenewalTMP.
How I can do that?
Thanks
I was wondering how to make my form look for other tables as well. Actually the form uses one table, but I want it to use 2 other tables, making it 3 tables in total.
Here's my code:
Code:
Public Sub Fusion_Click()
Dim Sql As String
Dim pathFichierWord As String
Dim rs As DAO.Recordset
Dim db As DAO.Database
Set db = CurrentDb()
Dim WordObj As Word.Application
Dim docs As Word.Documents
Dim doc As Word.Document
Dim pb As New Form_frmProgBar
Dim intK As Integer
Dim lngRecCount As Long
Dim path As String
Dim path As String
Dim path1 As String
Dim path2 As String
Dim path3 As String
Dim path4 As String
Dim path5 As String
Dim path6 As String
'path1 = path + "\" + "pathFR\" + "F_1st_renewal.docx"
'path2 = path + "\" + "pathEN\" + "E_1st_renewal.docx"
'path3 = path + "\" + "pathFR\" + "F_2nd_renewal.docx"
'path4 = path + "\" + "pathEN\" + "E_2nd_renewal.docx"
'path5 = path + "\" + "pathFR\" + "F_3rd_renewal.docx"
'path6 = path + "\" + "pathEN\" + "E_3rd_renewal.docx"
path = CurrentProject.path
pathFichierWord = path + "\" + "IN\" + "E_1st_renewal.docx" 'chemin du template
Sql = "SELECT * FROM Tb_1stRenewalTMP"
Set rs = db.OpenRecordset(Sql)
for now it uses the Sql = "SELECT * FROM Tb_1stRenewalTMP" line,
But I want also tu use the tb Tb_2ndRenewalTMP and Tb_3rdRenewalTMP.
How I can do that?
Thanks
Attachments
Last edited: