You may need to check that when your form loads, do you have recordsource already in place. If record source is loaded later or if it is un bound form, in the beginning you always have record count to zero.
In case, you do not find, please post a sample dB.
best regards.