G
Gerry
Private Sub cmdWord_Click()
On Error GoTo ErrorHandler
Dim cnn1 As ADODB.Connection
Set cnn1 = CurrentProject.Connection
Dim myRecordSet As New ADODB.Recordset
myRecordSet.ActiveConnection = cnn1
Dim appword As Word.application
Dim strCompanyName As String
Dim strContactName As String
Dim strWholeAddress As String
Dim strJobTitle As String
Dim docs As Word.Documents
Dim doc As Word.Document
Dim strWordTemplate As String
Dim strDocsPath As String
Dim strTemplatePath As String
Dim prps As Object
Dim strShortDate As String
Dim strLongDate As String
Dim strTest As String
Dim strAddress As String
Dim strCountry As String
Dim strSaveName As String
Dim strTestFile As String
Dim intSaveNameFail As Boolean
Dim i As Integer
Dim strSaveNamePath As String
Dim mysql As String
Dim naam_cl As String
Dim rs1 As Database
mysql = "SELECT qry_cofi_final.public_banker, qry_cofi_final.['090-
nummer'], qry_cofi_final.[Oude structuur], qry_cofi_final.naam_cliënt,
qry_cofi_final.leningnr, qry_cofi_final.RSS,
qry_cofi_final.huidige_rv, qry_cofi_final.EVVD_lening,
qry_cofi_final.EVVD_structuur, qry_cofi_final.strategy_name,
qry_cofi_final.KO, qry_cofi_final.kredietmarge, qry_cofi_final.MTM,
qry_cofi_final.[Euribor 3M], qry_cofi_final.[Marge DF], qry_cofi_final.
[Term structure], qry_cofi_final.[RV COFI KO 5,50% inclusief KM en
MTM], qry_cofi_final.[RV COFI KO 6% inclusief KM en MTM],
qry_cofi_final.[RV COFI KO 6,5% inclusief KM en MTM], qry_cofi_final.
[Vaste rv], qry_cofi_final.[Vlottende rv (3m hz)], qry_cofi_final.
[Restlooptijd_lening CVMS] FROM qry_cofi_final;"
myRecordSet.Open mysql
mysql.Fields(1).Name
---
On this last line of code I have on "mysql" a compile error: invalid
qualifier
Wat goes wrong?
kind regards
Gerry
On Error GoTo ErrorHandler
Dim cnn1 As ADODB.Connection
Set cnn1 = CurrentProject.Connection
Dim myRecordSet As New ADODB.Recordset
myRecordSet.ActiveConnection = cnn1
Dim appword As Word.application
Dim strCompanyName As String
Dim strContactName As String
Dim strWholeAddress As String
Dim strJobTitle As String
Dim docs As Word.Documents
Dim doc As Word.Document
Dim strWordTemplate As String
Dim strDocsPath As String
Dim strTemplatePath As String
Dim prps As Object
Dim strShortDate As String
Dim strLongDate As String
Dim strTest As String
Dim strAddress As String
Dim strCountry As String
Dim strSaveName As String
Dim strTestFile As String
Dim intSaveNameFail As Boolean
Dim i As Integer
Dim strSaveNamePath As String
Dim mysql As String
Dim naam_cl As String
Dim rs1 As Database
mysql = "SELECT qry_cofi_final.public_banker, qry_cofi_final.['090-
nummer'], qry_cofi_final.[Oude structuur], qry_cofi_final.naam_cliënt,
qry_cofi_final.leningnr, qry_cofi_final.RSS,
qry_cofi_final.huidige_rv, qry_cofi_final.EVVD_lening,
qry_cofi_final.EVVD_structuur, qry_cofi_final.strategy_name,
qry_cofi_final.KO, qry_cofi_final.kredietmarge, qry_cofi_final.MTM,
qry_cofi_final.[Euribor 3M], qry_cofi_final.[Marge DF], qry_cofi_final.
[Term structure], qry_cofi_final.[RV COFI KO 5,50% inclusief KM en
MTM], qry_cofi_final.[RV COFI KO 6% inclusief KM en MTM],
qry_cofi_final.[RV COFI KO 6,5% inclusief KM en MTM], qry_cofi_final.
[Vaste rv], qry_cofi_final.[Vlottende rv (3m hz)], qry_cofi_final.
[Restlooptijd_lening CVMS] FROM qry_cofi_final;"
myRecordSet.Open mysql
mysql.Fields(1).Name
---
On this last line of code I have on "mysql" a compile error: invalid
qualifier
Wat goes wrong?
kind regards
Gerry