Hi,
I'm trying to get some values from one table to an other. Now I select all dates from one table and I search with them in another table. When there is a record found for that date it should perform a query. But when there is nog record foud for that date is return empty. How do I compare to that??
My code for now:
[CODE=vb]Set rst = db.OpenRecordse t("SELECT DISTINCT Datum FROM Longfunctie;")
Do Until rst.EOF
Set rst2 = db.OpenRecordse t("SELECT eadnr, parameter, Waarde FROM PatParameters WHERE Datum = " & rst.Fields(0).V alue & ";")
If (IsEmpty(rst2.F ields(0).Value) ) Then
Debug.Print rst.Fields(0) & " " & rst2.Fields(0). Value & " " & rst2.Fields(1). Value & " " & rst2.Fields(2). Value
End If
rst.MoveNext
Loop
[/CODE]
I'm trying to get some values from one table to an other. Now I select all dates from one table and I search with them in another table. When there is a record found for that date it should perform a query. But when there is nog record foud for that date is return empty. How do I compare to that??
My code for now:
[CODE=vb]Set rst = db.OpenRecordse t("SELECT DISTINCT Datum FROM Longfunctie;")
Do Until rst.EOF
Set rst2 = db.OpenRecordse t("SELECT eadnr, parameter, Waarde FROM PatParameters WHERE Datum = " & rst.Fields(0).V alue & ";")
If (IsEmpty(rst2.F ields(0).Value) ) Then
Debug.Print rst.Fields(0) & " " & rst2.Fields(0). Value & " " & rst2.Fields(1). Value & " " & rst2.Fields(2). Value
End If
rst.MoveNext
Loop
[/CODE]
Comment