Creating controls on fly based on a query

T

Tiziana Venturini

I have a listbox with a multiselection.

strSQLCarto = "SELECT CARTA,LAYER,CIRC FROM CARTO " & _
"WHERE CARTO.CIRC IN (" & strCriteria & ");"

strCriteria is the selected items in listbox.

This SQL statement build a query

QRYCARTO:

CARTA
LAYER
CIRC

CIVICI_TO
02_CARTA
02

CIVICI_TO
02_PLASTICA
02

CIVICI_TO
02_RRU
02



I want to create form's labels dynamically using the field LAYER of the
query.

Is it possible?

Thanks in advanced.

Tiziana Venturini
 
Top