Autonumber problem

miltiadis21

Junior Programmer
Local time
Today, 12:22
Joined
Jul 11, 2007
Messages
44
Here is my Database

free_picture_upload_11841460984406.jpg



My problem is, that when i try to enter a new Leftlen and RightLen From the table "Lens" in the "Form" the LensId Auto increase and the relation is lost.For example lens id goes 2 and the customer id is 1 so the relation is lost between Them
and i cannot enter Data From the form. Any help?
 
the customerID column in the lens table should not be an autonumber as it is a foreign key. just a long integer.
Then create an autonumber primary key for Lens tables call it LensID.
 
Thanks it Really Worked! :) .i feel very stupid and happy simultaneously now that is solved :D
 

Users who are viewing this thread

Back
Top Bottom