Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Random Number
Message
From
19/06/2012 06:34:23
 
 
To
All
General information
Forum:
Visual Basic
Category:
Access
Title:
Creating a Random Number
Miscellaneous
Thread ID:
01546317
Message ID:
01546317
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform