M
majin_grohl
I have a subform (ACTIVITIES) within a form (END USER), which has
‘Distributor ID’ in the field list but not on the form. I have ‘Distributor
ID’ in the field list of the parent form (END USER), which is selected using
the row source of a combo box. The combo box takes the information from a
linked table and puts it into the ‘Distributor ID’ field in the table. When
I select a distributor, the ‘END USER’ table is updated, then when I add a
new activity I have a setvalue macro on the Subform so that when a new record
is created, it adds the distributor ID to it. The condition is that The
‘ENDUSER ID’ in the ‘ACTIVITIES’ form fields list is equal to the ‘ENDUSER
ID’ in the ‘END USER’ form. At the moment this creates a ‘TYPE MISMATCH’
error.
I took away the condition and now I get ‘An error occurred while referencing
the object’
Does any one have any ideas.
‘Distributor ID’ in the field list but not on the form. I have ‘Distributor
ID’ in the field list of the parent form (END USER), which is selected using
the row source of a combo box. The combo box takes the information from a
linked table and puts it into the ‘Distributor ID’ field in the table. When
I select a distributor, the ‘END USER’ table is updated, then when I add a
new activity I have a setvalue macro on the Subform so that when a new record
is created, it adds the distributor ID to it. The condition is that The
‘ENDUSER ID’ in the ‘ACTIVITIES’ form fields list is equal to the ‘ENDUSER
ID’ in the ‘END USER’ form. At the moment this creates a ‘TYPE MISMATCH’
error.
I took away the condition and now I get ‘An error occurred while referencing
the object’
Does any one have any ideas.