cgi app query1.Recordcount always returns 0

hello fellow delphines,

I'm currently writing a CGI app that seems to allways return 0 for
recordcounts even though I proved data is there. Also on one html page I set
a tag called #name and if I hardcode a string assignment to it, it will
work; however if I assign it a value from  tquery like name :=
CustomerCustomer.Name.Value it shows nothing.. Again I see the data if I use
a tdatasetproducer.