Dim rec8 As New ADODB.Recordset
rec8.Open " SELECT dbo.[Video-tv-rechten-royalty].Land, dbo.[Video-tv-rechten-royalty].landnaam, dbo.[Video-tv-rechten-royalty].recht, dbo.[Video-tv-rechten-royalty].percentage, " _
& " dbo.[Video-tv-rechten-royalty].memo, dbo.[royalty tv rights].contractid, dbo.Exclusivetekst.tekst AS exclusive FROM dbo.[royalty tv rights] INNER JOIN " _
& " dbo.[Video-tv-rechten-royalty] ON dbo.[royalty tv rights].contractid = dbo.[Video-tv-rechten-royalty].nr LEFT OUTER JOIN dbo.Exclusivetekst ON dbo.[Video-tv-rechten-royalty].exclusive = dbo.Exclusivetekst.[ja-nee] " _
& " WHERE ([Video-tv-rechten-royalty].[nr] = " & dealmemo_contract_id & ") ORDER BY dbo.[Video-tv-rechten-royalty].Land ", _
CurrentProject.Connection, adOpenKeyset, adLockOptimistic
' strtext talen
If rec8.RecordCount > 0 Then
rec8.MoveFirst
Do Until rec8.EOF
strtext8 = strtext8 & Trim(rec8![Landnaam].Value) & vbTab & " " & Trim(rec8![Recht].Value) & vbTab & " " & Trim(rec8![exclusive].Value) & vbTab & " " & Trim(rec8![percentage].Value) & vbTab & " " & Trim(rec8![Memo].Value) & vbCrLf
Debug.Print strtext8
rec8.MoveNext
Loop
|