?
Solved

not allow duplicate serial numbers to be scanned into form

Posted on 2011-03-04
4
Medium Priority
?
461 Views
Last Modified: 2012-05-11
Hello have attached sample db.
if you open db- open form- you will see serial number- i want users not to be able to add the same serial number more than once.
If I make serial number primary key in table- I get message box saying- 'you can't go to that specific record' - is that how I should do it? ( and then can I change message?)
or in this database should I be not allowing duplicate serial numbers in some other way?
thank you
onedb.mdb
0
Comment
Question by:davetough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 35039803
You can make a Unique Index for SSN and use the Auto Number for the Primary Key.

See image ... and modified db.

mx
onedb.zip
Capture1.gif
0
 

Author Comment

by:davetough
ID: 35039936
thank you - i am going to have to look at this to understand-
i am not sure how you created the window ( indexes: tbl1) - maybe I have to just look at it more
thank you
0
 

Author Comment

by:davetough
ID: 35040001
just found in design view of table under view menu-thanks - i have some things to learn
0
 
LVL 75
ID: 35040211
Sorry ... was about to post that and got a phone call.

fyi ... you can use this window to create unique Compound Indexes one two or more fields - to make a unique combination of fields - should the need arise ...

mx
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question