Dear zyus:
I have included a "Joke of the Day" in my small library application; it
displays a randomly chosen joke on the main screen. The joke changes each
time you open the application. You add "jokes" or "quotes" to a table.
In the Open event of the form, I have the following code:
Dim lngQuoteCount As Long
lngQuoteCount = DCount("*", "tblQuotes")
Randomize
Me.txtQuote = DLookup("Quote", "tblQuotes", "[QuoteID]=" & _
Int((lngQuoteCount * Rnd) + 1))
This uses a simple table with an autonumber ID and a text field to hold the
joke.
You can see it in action by downloading either of the library applications
available at the link in my sig.
HTH
--
Fred Boer - Amateur Access Enthusiast
Interests: Library software / Z39.50 / Web Services
Freeware Small Library Application available here:
http://www3.sympatico.ca/lornarourke/
zyus said:
How to put in "Tips Of The Day" or "Word Of the day" kind of thing in
Access
Form .
Tips/Word info can be maintained in a table and sys will auto select it
randomly when opened by user.
Thanks