MODIFY COMMAND awHTML
Please replace:
IF m.llFilterAPPENDFROMDbf(m.lcCursor)
USE IN (m.lcCursor)ELSEAPPENDFROMDbf(.RecordSource)ENDIF
tnRow = Reccount()
by:
IF m.llFilterAPPENDFROMDbf(m.lcCursor)
USE IN (m.lcCursor)ELSEAPPENDFROMDbf(.RecordSource)ENDIFIF m.llOrderLOCAL lcOrderExp
lcOrderExp = cTagExpr(m.lcOrder)IF lTableExpr(m.lcOrderExp)INDEXON&lcOrderExp TAG (m.lcOrder)ENDIFENDIF
tnRow = Reccount()
I've not still solved the problem.....I have no primary key on the table, because the code i see in the table is not the real record's id (the primary key). In the Load i open the table and i set the order to the tag of the field i have in the first column, but the grid is not ordered on this field....Obviously this is a Problem, because i can't link this field to a primary key
Michele,
what is the status of this issue?
I have a form within a grid. In the Load event of the form i open my table and set order to my main tag, but when the form is shown the grid with data from my table is not ordered on the tag i select. Do i need to do something particular ?
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)