yes I now, I'm completely ignorant of databases. after long research about how put my data into fields on the card I resolved so:
(the db file is a .mdb, I open it in ODBC mode.)
below the query that return 3 fields of the table TBLDISTILLATI. the fields are: DESCRIZIONE, ZONAPROD, MATERIAPRIMA
Code: Select all
put "SELECT DESCRIZIONE, ZONAPROD, MATERIAPRIMA from TBLDISTILLATI WHERE DISTILLATO = '"& gSelezione &"' " into tSQL
Code: Select all
set ItemDel to tab
put item 1 of tRecords into field "fldDescr"
put item 2 of tRecords into field "lblZonaProd"
put item 3 of tRecords into field "lblMatPrima"
Hit I the nail on the head? or there is a better and formal way?
I come from Visual Basic where, in this case, I could refer directly to the names of the fields of the DB specified in the query.
thanks for your attention
franco