SQL into a labels caption ?

SpookiePower

Registered User.
Local time
Today, 23:22
Joined
Sep 22, 2008
Messages
16
I would like to put the result from an SQL into the caption of a label, but it keeps showing the SQL sentenc insted and not the result. I can see that the label thinks it is some text I want to show, but how can I make it do what I want it to do ?

How I have tryed it -
label.caption ="select.......... ;"
 
Try using the DLOOKUP function instead of SQL.
hth
Chris
 
You have to calculate the value in a variable then you will be able to assign it to label
 

Users who are viewing this thread

Back
Top Bottom