473,779 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Double entry

Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.
Jul 19 '05 #1
12 2103
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #2
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #3
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #4
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #5
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #6
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.

Jul 19 '05 #7
Francesco in the previous post mentioned a primary key on the name *AND* the
date, so it should work...
"birdy" <bi***@quicknet .nl> wrote in message
news:ee******** *************** ****@news.multi kabel.nl...
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.


Jul 19 '05 #8
Francesco in the previous post mentioned a primary key on the name *AND* the
date, so it should work...
"birdy" <bi***@quicknet .nl> wrote in message
news:ee******** *************** ****@news.multi kabel.nl...
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.


Jul 19 '05 #9
Francesco in the previous post mentioned a primary key on the name *AND* the
date, so it should work...
"birdy" <bi***@quicknet .nl> wrote in message
news:ee******** *************** ****@news.multi kabel.nl...
Sorry that won't work.
Because every member should be able to confirm that they are present on a
specific date.
Also other members must be able to use the same date.
So the combination member and date must be unique.

"Francesco" <pl************ ***********@tha nks.net> schreef in bericht
news:40******** **@news.tiscali net.ch...
birdy wrote:
Howe can i prevent a double entry in a database.
Users can input their data into table.
But how to prevent a double entry.

Users can enter name and date
So users can enter their names only on one date.

Please help.

Hi,

you can make define the name and date field as the primary key for the
table. the primary key is unique and if you try to add another record
with the same value, mysql will give you an error.


Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
15876
by: Vincent Texier | last post by:
Hello, I want to send 3 chars in hexa code to the serial port. So I type in a tkinter entry : "\x20\x01\x21" The string is set in a StringVar(). When I read the stringVar, I get : "\\x20\\x01\\x21"
4
2787
by: Venkat | last post by:
Hi All, I need to copy strings from a single dimensional array to a double dimensional array. Here is my program. #include <stdio.h> #include <stdlib.h>
16
5827
by: jhwagner | last post by:
I need to use double data entry with an MS Access database. I have read many arguments and reasons against this on this group but I have to do this. I have seen various tips on how this can be done including the use of queries but this hasn't worked satisfactorily. I have two people who know Access just barely enough to enter the data so what I really want is something like the msgbox function to pop up a window whenever the person...
2
1364
by: Asha | last post by:
hello, every time i refresh my page i get a double entry? how can i solve this issue?
3
2934
by: akang2005 | last post by:
When I write 'double' data to the file, it seems working fine, but when I read it later, it returns a eof when it encounters a particular number even the file is not at the end yet. However, while I write a different set of data, there is no problem to read it. Attached is the file: try change the #define RANGE 1000 into 10000, the code works when the number is 1000, and does not work when the number is 10000.
20
6929
by: hippomedon | last post by:
Hello everyone, I'm looking for some advice on whether I should break the normalization rule. Normally, I would not consider it, but this seems to be a special case. I have created an "Outcomes Database" used to store response data from measures/ questionnaires for a longitudinal health study. It is essentially derived from Duane Hookom's Survey Database (thanks Duane!!!), with many modifications added to fit the needs of my lab.
1
1874
imrosie
by: imrosie | last post by:
Please help with this one,,,,,I've been trying everything in my arsenal to fix this one. I'm stumped.... I"ve got a unbound combo box (customername) that has two events (on click); AfterUpdate and NotInList. The AfterUpdate uses a 'me.recordsetclone' in order to display other data in controls associated with customerid/customername from the Customer table. The NotInlist, does just that, adds a new customer name to the list along with...
3
4660
by: Wayne | last post by:
I'm building a bookings database for trucks that among other things captures the TruckName, LoadDate, LoadTime, UnloadDate and UnloadTime. Is there a simple way to prevent double bookings for any particular truck so that when a new entry is being added, if the LoadDate and LoadTime doubles up with an existing entry I can flag it to the user?
5
3651
by: David Wright | last post by:
Hello All I am using Microsoft Access 2003. I have an input form (Single Form) into which the clerk records appliance details. Some appliance details will never change, for instance the 'Make and Model'. Some details will need to be updated later on, for instance the location of the appliance. When updates are required, the user opens the update form (Single Form). The user is able to cycle through all records of appliances using this...
0
9632
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9925
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
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
3
2867
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.