Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2005

Tip: Looking for answers? Try searching our database.

No duplicate for a field on the form level?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mattias - 02 May 2005 13:31 GMT
Hi

I know it is possible to set a field proporty to No duplicate in a table.
I want to do this on a higher level...in a Form instead..a ordinary field
that is not a Key field, maybe for a value entered in a cmb box in a subform.

Is this possible?

Mattias
Al Camp - 02 May 2005 13:57 GMT
Mattias,
  Not sure as to why you would wwant to do that but...

  If you don't declare NoDupes for a field in your table, you'll have to
manually validate each entry for that field.
  On the Before Update event for your field, you'll have to do a DLookup on
that value to make sure it doesn't exist in the table already.   If it
does... cancel the entry... if not, allow it.
  hth
  Al Camp

> Hi
>
[quoted text clipped - 6 lines]
>
> Mattias
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.