QUERY$ returns a Telitab set from an arbitrary database
QUERY$(QueryScript$, [InpVar])
Arguments
Example of an ACCESS query script
We want to get information from an MS ACCESS database with filename "DrawingOffice.mdb", based on two parameters in the knowledge base, PROJECT$ and MODNO$. The relation will be as follows:
A$ = QUERY$(TEXTITEM$(1), PROJECT$, MODNO$)
with in the data slot of the relations (note: we use "|" characters around the text item):
The places where and are defined will be replaced with the values of and (see also TEXTITEM$() and TEMPLATE$()). Furthermore please realise that the total script may only cover 5 lines of code:
Line 1: Type of query (Access):
Line 2: Call for the program (Access) and the Filename:
Line 3: User name: Line 4: Password:
Line 5: Query script:
In other words, the last line (the query script) should be one sentence, without any CRLF's.
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview