Hello,
I have a table populated each day with account information. Each days data is identified by a 'reportdate' field.
What I need to do is to count the number of consecutive days an account has appeared in the table.
I cannot simply count the number of times the account appears in the table because it could have appeared for 50 days then not appeared for 30 days and then appear for 3 days upto today.
I want my query to return the figure 3 for this account not 53.
Any suggestions would be much appreciated.
Regards
Jon
I have a table populated each day with account information. Each days data is identified by a 'reportdate' field.
What I need to do is to count the number of consecutive days an account has appeared in the table.
I cannot simply count the number of times the account appears in the table because it could have appeared for 50 days then not appeared for 30 days and then appear for 3 days upto today.
I want my query to return the figure 3 for this account not 53.
Any suggestions would be much appreciated.
Regards
Jon