Full Version: avoid duplicates
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
pompoon
I have form that allows data entry of sales. I want to make it impossible to enter sales data for an employee and month twice. What is the proper way to do this?
the underlying table has sales, month, and an employee id that is keyed to a main table.
ScottGem
Create a multi-field unique index on EmployeeID and Month.
damonsha
Scott

Any chance of a bit more on this indexing. Can't seem to get it too worl re my issue.

Cheers

Damon
jmcwk
What Scott is saying is Open your table in design view and click the indexes icon in the menubar, place EmployeeID and Month in the Grid and change unique from No to yes this places a UNIQUE Index on those two fields.
ScottGem
What John said wink.gif
damonsha
Brilliant very simple solution to an issue i was trying to overcome.

Thanks

Damon
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.