![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I use this query as a recordsource but it is not accepted: strSource = "SELECT Tabel_Aanvragen.*, VISA.* " & _ "FROM Tabel_Aanvragen INNER JOIN VISA ON Tabel_Aanvragen.ID As ID |
|
= VISA.ID ORDER BY Tabel_aanvragen.datum_registratie DESC" Form_subFrmTabelTotaal.RecordSource = strSource It has something to do with the ..... As ID. Problem is I need it. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
try it like this: strSource = "SELECT t1.*, t2.* " _ & "FROM Tabel_Aanvragen t1 INNER JOIN VISA t2 ON t1.ID = t2.ID ORDER BY t1.datum_registratie DESC" Rich *** Sent via Developersdexhttp://www.developersdex.com*** |
#5
| |||
| |||
|
|
On 29 sep, 18:09, Rich P <rpng... (AT) aol (DOT) com> wrote: try it like this: strSource = "SELECT t1.*, t2.* " _ & "FROM Tabel_Aanvragen t1 INNER JOIN VISA t2 ON t1.ID = t2.ID ORDER BY t1.datum_registratie DESC" Rich *** Sent via Developersdexhttp://www.developersdex.com*** The fact that I have the ID's from both tables is because when I set a filter on the Tabel_aanvragen the form looses the value for the ID, which I need to open the record in a different form. MyID = form.subform.ID Marco |
![]() |
| Thread Tools | |
| Display Modes | |
| |