Number of records?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to prevent the user to register more than a specified number of
records for a certain kind. Is it possible, with help of code in a form, to
test how many records there is in a table?

/ Rolf
 
Rolf Rosenquist said:
I need to prevent the user to register more than a specified number of
records for a certain kind. Is it possible, with help of code in a form, to
test how many records there is in a table?

/ Rolf

Hi Rolf,
you can use DCount("FieldName", "TableName", "Condition") to know how many
records there are in a table, in BeforeUpdate event.
Bye
 
Works fine! Thank you.

/ Rolf



Cinzia said:
Hi Rolf,
you can use DCount("FieldName", "TableName", "Condition") to know how many
records there are in a table, in BeforeUpdate event.
Bye
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top