mcdhappy80
Registered User.
- Local time
- Today, 04:42
- Joined
- Jun 22, 2009
- Messages
- 347
I have this SELECT query:
The query returns the numeric value. The value range, for what I need, should be zero or one.
How do I assign the query result to a variable that I can use in forms Class Module for further calculations, or to the text box?
Can this be done like this without using a recordset?
If not how should the code with Recordset variant look like?
Thank You.
Code:
SELECT COUNT(tblZaposleni.intZaposleniID) AS BrDirektora
FROM tblPoslovi INNER JOIN tblZaposleni ON tblPoslovi.intPosaoID=tblZaposleni.intPosloviID
WHERE tblPoslovi.txtNazivPosla="Direktor";
How do I assign the query result to a variable that I can use in forms Class Module for further calculations, or to the text box?
Can this be done like this without using a recordset?
If not how should the code with Recordset variant look like?
Thank You.