Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a Random Number
Message
De
19/06/2012 06:34:23
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Access
Titre:
Creating a Random Number
Divers
Thread ID:
01546317
Message ID:
01546317
Vues:
58
I would like to create and capture a Random Number generator using VBA. This process will be used across the board anytime there's a new record added to any database.

1. Create the random number: 6 digits. Capture that number in a global variable and return it.
2. Open up the PrimaryKey.mdb
3. If the random number exists in the primary key.mdb
THEN close the primarykey.mdb, Rerun the random number generator and recheck against the PrimaryKey.mdb
ELSE insert the record with the primary key generated only, save, update and close primarykey.mdb


Any thoughts? Suggestion on how to accmoplish this task?
.
Thanks in Advance.

J. Turner
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform