473,569 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Challenging Question

254 Contributor
Hello Every One

I have a simple problem. I want that admin or user cannot enter data to database more than a specific number of records (say 10). Means he/she can not enter data to the database more than 10 records.

In short in a particular table only 10 records will be there.


So how can i do it.

Don't tell me to use Query for that. In that case admin can enter data to database directly without writing any queries.

Waiting for Reply.
Nov 29 '07 #1
1 1103
r035198x
13,262 MVP
Hello Every One

I have a simple problem. I want that admin or user cannot enter data to database more than a specific number of records (say 10). Means he/she can not enter data to the database more than 10 records.

In short in a particular table only 10 records will be there.


So how can i do it.

Don't tell me to use Query for that. In that case admin can enter data to database directly without writing any queries.

Waiting for Reply.
So basically your question is how to restrict a table to a maximum size of 10 rows? One approach is to use a before insert trigger.
Nov 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5014
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
17
1625
by: LineVoltageHalogen | last post by:
Table DDL: create table test ( inId int primary key identity, inFK int not null, inSeq int not null, dtDate datetime )
3
3071
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table before rowID answID qryrow questionID datafield 1591 12 06e 06e 06e question 1593 12 06f 06f 06f question 1594 12 answer to the question 06f
4
2540
by: lefoot | last post by:
Here is the problem. The funtion "bitcount" has the parameter x( integer type, 4byte). The "bitcount" should count the number of '1' from the binary representation of x. But You shouldn't use either 'if' or 'else'. You're allowed to use bitwise operators such as '!, ~, ^, &, |, >>, <<'. You can use any local variables, constants, and '='...
11
1409
by: George | last post by:
Was my question too challenging for everyone? I thought I would get a much quicker response, complete with witty and (sometimes) condescending remarks Here's my question again, in case you missed it How do I reload a page Notice I did not ask "How do I *refresh* a page". I have no interest in the header meta refresh as this clears out the...
18
1559
by: Frankie | last post by:
I have been hired to go to a former client of mine and train their staff programmers on ASP.NET. These guys have only Mainframe, MS Access, SQL Server, and VB6 desktop application development experience (with absolutely no HTML or Web application experience). Before jumping into any code I think it's important to get them to understand the...
10
1266
by: exekutive | last post by:
I've been wrestling with this programming problem for some time now, so I thought I'd put it up for discussion. I'm trying to design a Mask function. See if you can figure out a code for it... The best way to explain this is to give an example of what the functions should do. * Let us a define a function as follows: Public Function...
5
1223
by: alainpoint | last post by:
Hi, I have what in my eyes seems a challenging problem. Thanks to Peter Otten, i got the following code to work. It is a sort of named tuple. from operator import itemgetter def constgetter(value): def get(self): return value return get def createTuple(*names):
8
1706
by: shuisheng | last post by:
Dear All, I have a libaray which provides a base class of name Base and several derived classes of name Derived1, Derived2 and so on. I want to add a client data into those classes, such as class MyBase: public Base { ClientDataType ClientData;
0
1020
by: James Perih | last post by:
Hi ya'll; Consider this array: $xmlData = array ( 'slideshow' =array ('settings' =array ( 'image_folder' => 'ads/', 'time' ='1', 'fade' ='2', 'repeat' ='true', 'captions' ='false',), 'images' =array ('image' =array ( 0 = array ('file' ='1.jpg', 'caption' ='Series #1',),
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.