P
petemcw
Hey everyone, I have a problem that I can't seem to figure out.
I am trying to bandaid a client's website that runs ASP.NET and an
Access DB. Basically we're trying to put in a simple banner
advertisement manager, and a randomly rotating banner ad.
Everything is more or less in place except I can't get the banner ad to
rotate randomly. The problem is that the "Autonumber" IDs are
non-sequential. This is obviously because the users can delete banners
they no longer want.
So I am looking for a way to select a random banner from the actual
records, versus generate a random number based on the count of records.
I don't have any experience with Access modules or anything, so I don't
know how to code my own solution using that road. I have thought about
selecting all the IDs, storing an array and pulling a random record
from the array, but I have a feeling there is a better way.
Does anyone have any experience in dealing with this? Any help would be
great!
I am trying to bandaid a client's website that runs ASP.NET and an
Access DB. Basically we're trying to put in a simple banner
advertisement manager, and a randomly rotating banner ad.
Everything is more or less in place except I can't get the banner ad to
rotate randomly. The problem is that the "Autonumber" IDs are
non-sequential. This is obviously because the users can delete banners
they no longer want.
So I am looking for a way to select a random banner from the actual
records, versus generate a random number based on the count of records.
I don't have any experience with Access modules or anything, so I don't
know how to code my own solution using that road. I have thought about
selecting all the IDs, storing an array and pulling a random record
from the array, but I have a feeling there is a better way.
Does anyone have any experience in dealing with this? Any help would be
great!