A
Anne
I have 2 comboboxes on a subform which seem to be set up identically, except
the 2nd one has a not on list event.
First Combo is to select JobNo, I can click into the field and select a job
or type a job.
the 2nd Combo is for a contact, linked to the main table by ContractorID.
The setup is equal to the job one.
Name is: txtContactID
ControlSource: ContactId (autonumber)
RowSource: cboContacts
column Count 2 - Column 2 = contact name
Bound col=1 (this is ContactID)
As soon as I try to type the new contact name, I get this error tone and
can't type.
I tried using contactName as bound column and everything worked fine, I
could type the new name, it would assign the next autonumber to the name,
but in the end, it would add 2 records instead of one. One would be
autonumber and name and then a second row with just a new autonumber, no
name.
Can someone tell me, where this goes wrong?
Anne
the 2nd one has a not on list event.
First Combo is to select JobNo, I can click into the field and select a job
or type a job.
the 2nd Combo is for a contact, linked to the main table by ContractorID.
The setup is equal to the job one.
Name is: txtContactID
ControlSource: ContactId (autonumber)
RowSource: cboContacts
column Count 2 - Column 2 = contact name
Bound col=1 (this is ContactID)
As soon as I try to type the new contact name, I get this error tone and
can't type.
I tried using contactName as bound column and everything worked fine, I
could type the new name, it would assign the next autonumber to the name,
but in the end, it would add 2 records instead of one. One would be
autonumber and name and then a second row with just a new autonumber, no
name.
Can someone tell me, where this goes wrong?
Anne