Hi!
I have a form called frmInputMain, which allows to step through each record one by one, or add a new record. Because I have many different fields, I was forced to categorize the fields into tab controls and sub tab controls.
Everything works great when you're just viewing the records. All of the fields show up. But the trouble comes when I try to add a new record. I click on cmdAddRecord and I can only add stuff in one control. Meaning that if I type in something for tab1, then i can't go to tab2 or even the subtabs in tab1. Or if I put in something in the subtab1, then i can't add anything into my tab1. The error that comes up is,
"The changes you requested to the table were not successful because they would create duplicate values in the index, prmiary key, or relationship"
or if I type in something in the subtab controls first,
"Index or primary key cannot contain a NULL value".
For inputting a record, the user types in the primary key (ContractNumber), and then the user adds the rest of the data in in the tabs and subtabs.
PLEASE HELP!!
thanks in advance.
I have a form called frmInputMain, which allows to step through each record one by one, or add a new record. Because I have many different fields, I was forced to categorize the fields into tab controls and sub tab controls.
Everything works great when you're just viewing the records. All of the fields show up. But the trouble comes when I try to add a new record. I click on cmdAddRecord and I can only add stuff in one control. Meaning that if I type in something for tab1, then i can't go to tab2 or even the subtabs in tab1. Or if I put in something in the subtab1, then i can't add anything into my tab1. The error that comes up is,
"The changes you requested to the table were not successful because they would create duplicate values in the index, prmiary key, or relationship"
or if I type in something in the subtab controls first,
"Index or primary key cannot contain a NULL value".
For inputting a record, the user types in the primary key (ContractNumber), and then the user adds the rest of the data in in the tabs and subtabs.
PLEASE HELP!!
thanks in advance.