Bob Quintal <rquintal@sympatico.ca> wrote in
news:Xns9784DA854EE3ABQuintal@207.35.177.135:
[color=blue]
> "David W. Fenton" <XXXusenet@dfenton.com.invalid> wrote in
> news:Xns9784CF480F900f99a49ed1d0c49c5bbb2@127.0.0. 1:
>[color=green]
>> Bob Quintal <rquintal@sympatico.ca> wrote in
>> news:Xns9784B894673F9BQuintal@207.35.177.135:
>>[color=darkred]
>>> "David W. Fenton" <XXXusenet@dfenton.com.invalid> wrote in
>>> news:Xns9784B1B1E9BE4f99a49ed1d0c49c5bbb2@127.0.0. 1:
>>>
>>>> Bob Quintal <rquintal@sympatico.ca> wrote in
>>>> news:Xns9783CD7517162BQuintal@207.35.177.135:
>>>>
>>>>>
campbellwarren@gmail.com wrote in
>>>>> news:1142108625.573777.19070@j52g2000cwj.googlegro ups.com:
>>>>>
>>>>>> Does anyone know how I could limit the number of rows
>>>>>> allowed in a MS Access table... want to limit it to 1.
>>>>>>
>>>>> Create an autonumbe field. set the table validation[/color][/color]
> property[color=green][color=darkred]
>>>>> to [field]=1, Replace [field] with the actual name of your
>>>>> field.
>>>>
>>>> I wouldn't use a table-level validation rule, but a
>>>> field-level rule on the Autonumber field, and make it <=10[/color][/color]
> or[color=green][color=darkred]
>>>> whatever the limit on the number of records you want to[/color][/color]
> limit[color=green][color=darkred]
>>>> it to.
>>>
>>> How can you set a field validation rule for an autonumber?
>>> There's no property for that in the design grid. (ACC2000)[/color]
>>
>> You're right -- my brain fart.
>>[/color]
> Actually, after thinking about it, you don't need an autonumber,
> just an int. set the default value to 1, the primary key to the
> field, and the validation rule to allow only the one number.[/color]
Well, that works for a single-record table, but fails for any other
number of records.
--
David W. Fenton
http://www.dfenton.com/
usenet at dfenton dot com
http://www.dfenton.com/DFA/