tabs Question. And thanks for any help.
I am editing a record for a person who has made 2 purchases. when I go from a tab to the save button(not on the tab), it backs up one record to another purchase done a year ago. It is duplicated with a customer who maed 3 purchases. It is only backing up to the last name, because the first name is different in one of them.
The save button has several scripts(1 in xbasic) attached, but none have anything to do with this. there are no scripts attached directly to the tabs. If I change the form to not allow navigation, it still changes the record. It ONLY happens with same last names as all other deal data is different.
What could possibly have an influence on this. Maybe me??
I will attach the xbasic to be sure:
Thanks all!
Dave
I am editing a record for a person who has made 2 purchases. when I go from a tab to the save button(not on the tab), it backs up one record to another purchase done a year ago. It is duplicated with a customer who maed 3 purchases. It is only backing up to the last name, because the first name is different in one of them.
The save button has several scripts(1 in xbasic) attached, but none have anything to do with this. there are no scripts attached directly to the tabs. If I change the form to not allow navigation, it still changes the record. It ONLY happens with same last names as all other deal data is different.
What could possibly have an influence on this. Maybe me??
I will attach the xbasic to be sure:
Code:
'Open the table to update... dim tbl as p tbl = table.open("upsfollow2",FILE_RW_SHARED) dim target_record as n target_record = 1 'Find out what the last record in the table is dim last_rec as n 'Set the index to record number order Dim itbl as p itbl = tbl.index_primary_put("") tbl.fetch_last() last_rec = tbl.recno() tbl.enter_begin() tbl.ACCT = a5_eval_expression("=Acct") tbl.DATEOF = a5_eval_expression("=Date") tbl.NOTE = "\"New Contact Notes\"" tbl.NEXTDATE = a5_eval_expression("=Date+1") tbl.enter_end(.t.) tbl.enter_begin() tbl.ACCT = a5_eval_expression("=Acct") tbl.DATEOF = a5_eval_expression("=Date+1") tbl.NOTE = "\"1st Day Call Back - Send Thank You Letter\"" tbl.NEXTDATE = a5_eval_expression("=Date+2") tbl.enter_end(.t.) tbl.enter_begin() tbl.ACCT = a5_eval_expression("=Acct") tbl.DATEOF = a5_eval_expression("=Date+2") tbl.NOTE = "\"2nd Day Call Back - Get appointment\"" tbl.NEXTDATE = a5_eval_expression("=Date+3") tbl.enter_end(.t.) tbl.enter_begin() tbl.ACCT = a5_eval_expression("=Acct") tbl.DATEOF = a5_eval_expression("=Date+3") tbl.NOTE = "\"3rd Day Call Back - Get appointment\"" tbl.NEXTDATE = a5_eval_expression("=Date+4") tbl.enter_end(.t.) tbl.close()
Dave
Comment