Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a form on network
Message
 
To
07/04/2001 08:40:12
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00493175
Message ID:
00493177
Views:
14
>I have a 'form'(master-detail) that run on network,
>If there are 2 or more run 'form' to input data at the same time,
>then occuring error "...invalid key..." or the key is invalid between tables(master-detail)
>What can i do to solve this problem ?


I think this is because you are assigning the same primary key in both forms.
What you can do is creating a keynumbers file where you store the keynumber to be used.
Each time you need to create a new record, you look into this file first, get the value out of it, and replace the value with value + 1

In the Tasmanian Traders example is a sample of this in the NewID function.
Previous
Reply
Map
View

Click here to load this message in the networking platform