473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Access beginner: Have Access show prompt window when duplicate entry already exists

2
I am not very familiar with Microsoft Access (my work computer says that it is Access 2007-2010 when the program is open). As such, my question may not even have a clear answer...

I have a table called "New App Tracking" , which is used to assign an ID number to each entry, and has several columns within in for 'Facility name' 'date received' and so on.

What I need (I don't know if this is possible) is for Access to prompt me with a pop up when an identical entry for the field "Facility name" has been detected. I don't have any forms set up, just a stand-alone table. I have a query that I can access that shows duplicates, but I need it to prompt me when I am making entries into the table as soon as it picks up another similar entry (so that duplicate applications are avoided immediately).

I have no idea how to achieve this, and I have read through multiple threads to no avail, as I don't know where I need to be going to input the coding (nor do I have the complexity of the setup existing in my database to have the code work).
Aug 17 '16 #1

✓ answered by PhilOfWalton

I think not.
I appreciate you are a beginner and I know many of the contributors to this forum rant on about Normalisation. You must get to grips with it.
You are looking at your table as if it were an Excel sheet.

You need 2 tables, one for your faculties, and one for your Application tracking.

With the TblFaculties, you need
Expand|Select|Wrap|Line Numbers
  1. TblFaculties
  2.     FacultyID      AutoNumber   Primary Key
  3.     FacultyName    Text         Indexed(No Duplicates)
  4.  
The NoDuplicates does what it says on the tin

The TblAppTracking will look something like this
Expand|Select|Wrap|Line Numbers
  1. TblAppTracking 
  2.     AppTrackingID      AutoNumber   Primary Key
  3.     FacultyID          Number Long  Foreign Key
  4.     DateReceived       Date
  5.     ...
  6.     ...
  7.  
Then set up a relationship between the 2 tables and enforce referential integrity.
Your query based on the 2 tables will appear to show the FacultyName on every line, but in fact it is there only once.

The other thing is that you need to get to grips with forms.
Wearing the hat of a User, rather than a programmer, you should NEVER be able to see table, and rarely see queries. Only Forms for inputting & viewing data & reports

Phil

2 950
ms3245
2
I resolved my own question!
Aug 17 '16 #2
PhilOfWalton
1,430 Expert 1GB
I think not.
I appreciate you are a beginner and I know many of the contributors to this forum rant on about Normalisation. You must get to grips with it.
You are looking at your table as if it were an Excel sheet.

You need 2 tables, one for your faculties, and one for your Application tracking.

With the TblFaculties, you need
Expand|Select|Wrap|Line Numbers
  1. TblFaculties
  2.     FacultyID      AutoNumber   Primary Key
  3.     FacultyName    Text         Indexed(No Duplicates)
  4.  
The NoDuplicates does what it says on the tin

The TblAppTracking will look something like this
Expand|Select|Wrap|Line Numbers
  1. TblAppTracking 
  2.     AppTrackingID      AutoNumber   Primary Key
  3.     FacultyID          Number Long  Foreign Key
  4.     DateReceived       Date
  5.     ...
  6.     ...
  7.  
Then set up a relationship between the 2 tables and enforce referential integrity.
Your query based on the 2 tables will appear to show the FacultyName on every line, but in fact it is there only once.

The other thing is that you need to get to grips with forms.
Wearing the hat of a User, rather than a programmer, you should NEVER be able to see table, and rarely see queries. Only Forms for inputting & viewing data & reports

Phil
Aug 17 '16 #3

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

Similar topics

7
by: Xah Lee | last post by:
Python doc problem: http://python.org/doc/2.4.2/lib/os-file-dir.html makedirs( path) Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed...
6
by: Chad Crowder | last post by:
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the...
2
by: ambersaria420 | last post by:
I need to prompt the user to enter ID. I can open up prompt fine using javascript code below. However I am not sure how to get value that user entered in user prompt window. I have to check this...
1
by: Lana rose | last post by:
Is there a way of hiding the command prompt window when executing some code in C++ that needs no input from the reader? it is simply a piece of code that reads some data from one file and...
0
by: shanmugam | last post by:
Hi All How can i hide the command prompt window when executing the system command in perl. Thanks in advance Shanmugam
6
by: deejow | last post by:
Hi, I want Access to return an error message that says an identical entry already exists. I do not want to set the field to 'no duplicates' because it is a name field and it is possible to have...
0
by: srirampavan | last post by:
how to get login prompt window when we press radio button??/
1
by: Nurgle | last post by:
I'm sorry this is so long. I've edited a couple of times now, and cut it by 1/3 but haven't come up with a way to shorten it more without losing important bits. I don't even know what to search...
9
by: mukeshpiplai | last post by:
I have a bound form with Multivalue Combobox (bounded). I successfully stored data to bound field using combobox values. but I want a prevent message if any item selected from this combobox already...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.