I have a form that I dropped a TQuery (call it Query1) onto. I need Query1 to give me the total number of records that meet the certain conditions. The data is stored in a TTable (call it Table1). The conditions are:
myId = x // x can change
myWt = y // y can change
What would I enter for Query1.Params and Query1.SQL? What would I type in order to use the result of this query, i.e. total number of records that meet my conditions e.g. ttlRecords := ??? ? What other things (highly technical term) do I need to set to make the query work?