Hi,
it’s not scriptcase that’s giving you the headache. I’m sorry to say but it is your database design that’s faulty.
You are right an auto increment field is not required as a primary key, but then it’s your problem to take care of it.
Person_id + date is NOT unique, hence the db gives you the error. Scriptcase has nothing to do with it.
Please don’t feel offended but take a pencil, a sheet of paper and a (big) eraser and start defining (exactly) what your application
should do, what data you need for it and then begin designing your database (read up on normalization).
That’s at least 75% of your application and the rest is creating the user interface and programming the logic from step 1.
This is where scriptcase shines and saves you a tremendous amount of time.
It seems to me what you are doing right now is fixing a superficial error and by doing so creating two new ones. At the end you might
get a working application by adding a workaround after workaround but if anything changes your whole system collapses like a house of cards.
As I said earlier, don’t feel offended but I strongly suggest you get your foundation (database) right otherwise people here in the forum are
having a hard time helping you over the hurdles.
jsb