alastair69
Registered User.
- Local time
- Today, 06:07
- Joined
- Dec 21, 2004
- Messages
- 562
I have the following code:
First any refinements would be greatfully received.
This generates a random list of clients
Function RandomNumber(FeedNum As Long)
Randomize
RandomNumber = Int((FeedNum + 1000) * Rnd + 1)
End Function
Sub forms are running though query based on above RandomNumber([clientID]), top value is set to 50. Runs fine but, when i use a text box to hold the number of random records to show it keeps erroring the following message "Compile Error: ByRef argument type mismatch".
Can anybody help me please
Thanks
Alastair
First any refinements would be greatfully received.
This generates a random list of clients
Function RandomNumber(FeedNum As Long)
Randomize
RandomNumber = Int((FeedNum + 1000) * Rnd + 1)
End Function
Sub forms are running though query based on above RandomNumber([clientID]), top value is set to 50. Runs fine but, when i use a text box to hold the number of random records to show it keeps erroring the following message "Compile Error: ByRef argument type mismatch".
Can anybody help me please
Thanks
Alastair