how to get value from an access querry in a variabe?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2004
Posts: 40
Reputation: marijana is an unknown quantity at this point 
Solved Threads: 0
marijana marijana is offline Offline
Light Poster

how to get value from an access querry in a variabe?

 
0
  #1
Sep 19th, 2005
:-)
hi!
can somebody help me, pls;
i have an acces database, and a querry "Q1" that counts some records, depending on the value of one combo on the form. This is sql view of the querry:

"SELECT Count(tblZARAZNABOLEST.idZarazna) AS CountOfidZarazna
FROM tblGRADOPCINA INNER JOIN (tblNASELJE INNER JOIN tblZARAZNABOLEST ON tblNASELJE.idNaselje = tblZARAZNABOLEST.idNaselje) ON tblGRADOPCINA.idGradOpcina = tblNASELJE.idGradOpcina
GROUP BY tblGRADOPCINA.idGradOpcina
HAVING (((tblGRADOPCINA.idGradOpcina)=[Forms]![Prijava oboljenja-smrti od zarazne bolesti]![Combo34]));"

lets say that querry counts 30 records,now i want to display that number in a text box on the form....how to do that?????
pls help
tnx

btw, all of the application is written in access, forms, and code, and all
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC