Have records in SQL table, many records with same date.
Example
Rcd1 04/01/02
Rcd2 04/01/02
Rcd3 04/02/02
Rcd4 04/02/02
Need to perform stored procedure which will pass back the number of unique dates (in this case 2) represented within a date range that I ask for so I can determine how many columns to put in MSFlexGrid in Visual Basic.
I do not care about returning the Recordset, just the variable representing the # of unique dates.
I tried using the COUNT function but can't figure out how to attach a variable to COUNT?
Thanks in advance for your help.
Example
Rcd1 04/01/02
Rcd2 04/01/02
Rcd3 04/02/02
Rcd4 04/02/02
Need to perform stored procedure which will pass back the number of unique dates (in this case 2) represented within a date range that I ask for so I can determine how many columns to put in MSFlexGrid in Visual Basic.
I do not care about returning the Recordset, just the variable representing the # of unique dates.
I tried using the COUNT function but can't figure out how to attach a variable to COUNT?
Thanks in advance for your help.