Full Version: Query problem
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
Natasa
Hello everyone,

I have table OdabranaOprema with column Ukupno.I have made Query - OdabranaOprema Query with which I make sum of numbers column Ukupno.I would like with Command button pull the result of this query and put it in txtBrojModula,I have tried with this but something wrong,

can someone help me,

thank you in advance,

lngResult = 0

txtBrojModula.SetFocus

lngResult = Nz(DLookup("[OdabranaOprema].[Ukupno]", "[OdabranaOprema Query ]"), 0)

txtBrojModula.Value = lngResult
Peter46
You have used inconsistent names for your query in the dlookup.
MStef
Hello Natasa!
Look at "DemoUkupnoA2000.mdb", (attachment),
I think it is what you need.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.