Fuga
Registered User.
- Local time
- Today, 12:23
- Joined
- Feb 28, 2002
- Messages
- 566
Is it possible to use a variable in the where clause?
***
Dim rattdag as string, rattlopp as string
Set rsdogs = CurrentDb.OpenRecordset("SELECT Starter.Loppdatum, Starter.Startnummer where starter.loppdatum =" & rattdag & " and starter.startnummer =" & rattlopp " FROM Starter ORDER BY Starter.odds DESC;")
***
I keep getting an error message and I can´t figure it out.
Fuga.
***
Dim rattdag as string, rattlopp as string
Set rsdogs = CurrentDb.OpenRecordset("SELECT Starter.Loppdatum, Starter.Startnummer where starter.loppdatum =" & rattdag & " and starter.startnummer =" & rattlopp " FROM Starter ORDER BY Starter.odds DESC;")
***
I keep getting an error message and I can´t figure it out.
Fuga.