Hi May T,
Something like this:
If you need parameters:
var query = TaxReivablePayableRegister.QuerybyElements();
var selParams = query.CreateSelectionParams(); //optional
selParams.Add(query.ID, "I", "EQ", this.ID); //optional
queryResult = query.Execute(selParams);
If you dont need parameters:
var query = TaxReivablePayableRegister.QuerybyElements();
queryResult = query.Execute();
Things to check: Check that you have the namespace imported, Check if you can query this object (TaxReivablePayableRegister.)
Regards,
Thomas