A
Andy Roberts
I have a client form (frmClient) and on that form is a tab control that has
two tabs (Jobs &Contacts) Each tab has a subform showing, in the case of
the jobs subform, all the jobs relating to the client displayed on the main
form.
On the Contacts subform I have all the contacts for each client (company) on
the main form. It has the following fields:
ContactID, Name, JobTitle, Mobile and a button at the end called Edit.
All the fields are locked and the user has to click the edit button which
opens a ContactEdit form where all the details for eachcontact can be
editted (there is much more info displayed on this form than in the subform
due to space). The JobTitle field is a cbo which is linked to a JobTitle
table and works fine except than when I select a job title from the drop
down it displays fine, however when I change the job title it replaces the
JobTitlefield in the JobTitle table with the primary key (ID of that
particular record. The same happens when I change the company a person
works for.
For example:
Joe Smith works for TestCompany and is a Supervisor. When I change his
company or his job title from the respective dropdown cbo it replaces
"TestCompany" witrh the ID of TestCompany and "Supervisor" with the ID of
supervisor in each respective table. Opening the tables proves the data is
being changed as oppose to just displaying it differently. I've obviously
got the same issue with both cbo's.
Any Thoughts?
--
Regards
Andy
___________
Andy Roberts
Win XP Pro
Access 2007
two tabs (Jobs &Contacts) Each tab has a subform showing, in the case of
the jobs subform, all the jobs relating to the client displayed on the main
form.
On the Contacts subform I have all the contacts for each client (company) on
the main form. It has the following fields:
ContactID, Name, JobTitle, Mobile and a button at the end called Edit.
All the fields are locked and the user has to click the edit button which
opens a ContactEdit form where all the details for eachcontact can be
editted (there is much more info displayed on this form than in the subform
due to space). The JobTitle field is a cbo which is linked to a JobTitle
table and works fine except than when I select a job title from the drop
down it displays fine, however when I change the job title it replaces the
JobTitlefield in the JobTitle table with the primary key (ID of that
particular record. The same happens when I change the company a person
works for.
For example:
Joe Smith works for TestCompany and is a Supervisor. When I change his
company or his job title from the respective dropdown cbo it replaces
"TestCompany" witrh the ID of TestCompany and "Supervisor" with the ID of
supervisor in each respective table. Opening the tables proves the data is
being changed as oppose to just displaying it differently. I've obviously
got the same issue with both cbo's.
Any Thoughts?
--
Regards
Andy
___________
Andy Roberts
Win XP Pro
Access 2007