Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting random records
Message
 
To
19/06/2012 22:13:25
General information
Forum:
Visual Basic
Category:
Access
Miscellaneous
Thread ID:
01546408
Message ID:
01546445
Views:
43
>I have some jpeg files in my image subdirectory of the main directory where I am storing all my application data, for example, p:\fcast\images
>
>1.Upon loading of the splash screen, how can scan the directory and capture all the file names of the jpegs, and store them in a temporary table on the users hard drive?
>
>2. Then I would like to randomly select a record and capture the Jpeg file name selected.
>
>3.  Next, I want the picture to appear in the picture facemask on the form. So basically every time someone pulls up the application, the first screen displays a different pic

You might think of adding a numeric field that holds "sequences" of the images. Then you might use the rnd ()function. It will give you a random number between 0 and 1. Assuming you have say 50 images, and that you stored 1..50 in the field I suggested, then you would load the image with sequence 1+int(50*rnd())

Hope this helps.

Kind regards,

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform