assign value to label

collinm

Registered User.
Local time
Today, 12:40
Joined
Apr 20, 2006
Messages
14
hi

in vba i done a query
strQuery
strQuery = "select sum(x) as X, sum(y) as Y from test3"

how to run this query and get sum(x) value, sum(y) value and
set it to label

txtX.caption = ...
txtYCaption = ...

any idea?

thanks
 
Me.txtX.caption = DSum(X, domain, [criteria])
Me.txtY.caption = DSum(Y, domain, [criteria])
 

Users who are viewing this thread

Back
Top Bottom