lcFieldName = FIELD( 2, This.RowSource )If the RowSource is 3-Sql Statement, you can use the same logic as above, but instead of This.RowSource, you have to use the name of the cursor that is the desitination in the SELECT statement.
lcFieldName = ALLTRIM( GETWORDNUM( This.RowSource, 2, ',' ) )To get the name of the table when the RowSourceType is 6, use this code:
lcAlias = GETWORDNUM( This.RowSource, 1, '.' )