Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record Pointer Moving after REQUERY
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00290073
Message ID:
00290163
Views:
27
Jeff,

I just noticed another problem with that method. If you open up two forms at the same time and then have each form add a new record they will both get the same number if you are not using an incrementing ID. I was using a tip from Jason that uses the SELECT MAX(somecolumn) AS MAX INTO CURSOR cSomeCursor.

Then you can use the MAX value as the Next ID. It seems to work really well. I also have another SP that uses a MASTER table to read the next ID value.

What happened using the MAX method was it gave both new View Records the same number. Then I saved one view and then when I saved the other view since the key was the same it Overwrote the first one!

Any more ideas?

TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform