Victor,
Try:
lcPkExp = KEY(TAGNO(DBGETPROP(lcTableName, "Table", "PrimaryKey")))
HTH
>I know I can do something like this:
>
>cResults = DBGETPROP(lcTableName, "Table", "PrimaryKey")
>
>......and that will give me the primary key...but how the heck do ya get the primary key expression?
>
>Thanks!
Daniel