Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Added record in SQL query uses wrong primary key record
Message
 
To
01/11/1999 22:28:53
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00285258
Message ID:
00286324
Views:
24
Rex,

>When I add a new record, I get two calls to NewId(), one for UInvDet.iId and one for iLotId, but they both increment the UInvDet record.>

>I am trying to update both UInvDet and UInvLot from this view. UInvLot only really needs to be updated when a new lot number is added.

In the "Default Value" call to NewID(), I recommend explicitly passing the table name (specified in the ID.dbf table). This ensures that NewID() uses the proper record in ID.dbf.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform