Hi, This is my problem.
A form (startform) is opened, wich is based on a table, called programvariable s. This is supposed to be a one-record table, wich will hold some values needed to store user-preferences. The form shows some of these preferences.
Now I want on the event of opening this form, to make a random number (integer), and then to store this number in a field in de table(programva riables), wich field I call res3.
Then the content of the field can/should be shown in the form I just opened.
Problem1: trying Rnd() just gets me the same nummer over and over again. This is of course not wat random is supposed to be. Just wat need I to do to make Acces give me a realy random number?
Problem2: how do I store (without intervention of the user) a number in a table (that is: in the one pre-existing record, not appending a record to the table).
Have patience with me I realy know very little of VB
Already many thanks
Chris
A form (startform) is opened, wich is based on a table, called programvariable s. This is supposed to be a one-record table, wich will hold some values needed to store user-preferences. The form shows some of these preferences.
Now I want on the event of opening this form, to make a random number (integer), and then to store this number in a field in de table(programva riables), wich field I call res3.
Then the content of the field can/should be shown in the form I just opened.
Problem1: trying Rnd() just gets me the same nummer over and over again. This is of course not wat random is supposed to be. Just wat need I to do to make Acces give me a realy random number?
Problem2: how do I store (without intervention of the user) a number in a table (that is: in the one pre-existing record, not appending a record to the table).
Have patience with me I realy know very little of VB
Already many thanks
Chris
Comment