Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving integer (AutoInc) type

Status
Not open for further replies.

selinis

Programmer
Oct 15, 2001
29
0
0
CA
Hi!

i have a local view with 2 tables in "one-to-many" relationship: people and ticket.ID is the primary key of "people" table (integer AutoInc type;i'm using VFP 8) and foreign key in "ticket" table.
The problem occurs when i wish to add a new record.The update of the tables is made corectly in the case of "people" table (the new record has an incremented ID),but when i'm looking in the "ticket" table the foreign key has the value "0".Does anybody know how can i update the foreign key with the right value?
thank you!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top