Don't be worrying, with intermittent faults nothing is stored in the ECU on most cars, very few record everything. It could well be down to when you run low in fuel and fill up you bring the dirt etc from the bottom off the tank to the top and end up burning that. The car picks tht up and light comes up.
Best thing to do before you start buying a sensor would be not to let the tank go before 1/4 empty and fill it when it gets to that marker. Try this for a few fills and see if it comes on. If it does you have to look further but this way cost you nothing.
What type of car have you got and I'll look into it over the weekend.
Petrol or Dsl?