Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on duplicate key
Message
From
02/04/2005 09:46:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01000949
Message ID:
01000979
Views:
20
>Hi to All,
>
>I need help about this 'scenario'.
>In a Data Form, I manage an MS SQL Table with a PK.
>I manage this Table with a Cursor Adapter, created with CA Builder (is a class).
>How can I to verify, when the record is new and immediatly after I enter the primary Code, that this Code isn't duplicate ? This PK isn't automatically generated.
>The control on the duplicate key is currently active only when I try to save and this isn't interesting for me.
>
>Thank you for help and any code suggestion.
>
>Best Regards

Unless it's an auto generated unique value there is no way to check before trying to save (assuming multiuser).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform