
- 162 -
Note:
Youcandefineconditionsonmultiplefieldsatthesametime.
Database Access
Databaseaccessfunctionsarefunctionsusedtoretrievedatafromthedatabase.
Therecordscanbeobtainedfromthedatabaseusingdifferentapproaches.
1. Youcansuccessivelyreadrecordbyrecordfromthedatabaseandusethemallonthe
label.
2. Youcanselectrecordsforprinting.
3. Youcandefinefiltersthatwillbeusedtoretrievejustasubsetofrecordsfromyourdata-
base,thatwillcomplytoyourconditions.
Theresultofthedatabaseaccessfunctionisasetofvariables,oneforeachselectedfieldofdata-
basetable.Eachdatabasevariableisnamedthesameasthedatabasefield,buthasadditionalprefix
ofadatabasename.Thisallowsyoutoquickeridentifyfromwhichdatabasetablethevariable
comesfrom.
For example:
IfyouhaveafieldnameProductinthedatabasetableDBPROD,theresultinglabelvariablewillbe
namedDBPROD.Product.
Thelabelingsoftwaresupportsalltypesdatabase.Theonlyconditionisthatyouhavetheappropriate
databasedriverinstalledintheWindowssystem.ThelabelingsoftwarecanworkwithOLEDB,
ODBC,BDEandotherdatabasedrivers.
Forconnectivitytomodernmulti-lingualUnicodedatabasestheOLEDBproviderisavailable.
UsingthistechnologytheUnicodevaluescanbeusedonthelabel.Thesearethedatavaluesindif-
ferentcodepages.Youcanusethetableswithdifferentlanguagesettingsonthesamelabel.
Changing the Order of Database Records
Youcanchangetheorderinwhichthelabelingsoftwareprintstherecordsfromthedatabasetable.
Bydefaulttherecordsareprintedfromthefirstonetothelastoneinorderastheyappearinthe
table(ifyoudonotenablerecordselectionfeature).
Toorderrecordsbyonefieldfromthedatabase,dothefollowing:
1. Connectthedatabasetabletothelabel.
2.
MakesuretheDatabasetoolbarisvisible,thenclickonthe (Edit)button.
TheDatabase AccessdialogboxopenswithGeneraltabdisplayed.
Note:
IftheDatabasetoolbarisnotvisible,selectToolbarsfromtheViewmenu,thenclickDatabase.
3. IntheOrderdialogboxselectthefield,bywhichyouwanttosorttherecords.
Whenyouwillprintorpreviewthelabeltherecordsareorderedbytheselectedfieldin
ascendingorder.
4. ClickOK.
Toorderrecordsbymultiplefieldsfromthedatabase,dothefollowing:
1. Connectthedatabasetabletothelabel.
2.
MakesuretheDatabasetoolbarisvisible,thenclickonthe (Edit)button.
TheDatabase AccessdialogboxopenswithGeneraltabdisplayed.
Comentarios a estos manuales