A
ake
Hi, Can anyone help me display a random message on forms?
Beetle said:You could create a small table to store the messages like;
tblDisplayMessages
**************
MessageID (Autonumber PK)
MessageText (Text data type)
Then create the following query to select one random record at a
time from the table;
SELECT TOP 1 Rnd([MessageID]) AS Expr1, MessageText
FROM tblDisplayMessages
ORDER BY Rnd([MessageID])
As far as displaying the messages, you would need to display them
in a separate pop up form, or perhaps a small subform within
another form, using the query as the record source for the pop up
form (or the subform).
--
_________
Sean Bailey
ake said:I would put various tips and quotes in a database that I created. I want one
of these "quote" or "tip" to be displayed once the starting form is opened.