loneranger27
Programmer
Hi,
I seem to be having a problem when I pass the primary key of one form to the foreign key of another form.
I am using appraisalid as the primary key in the field form and I am passing that value to appraisalid (the foreign key) of the appraisal form.
To assign the value I am using the before insert event of the appraisal form and I have this code:
Me![appraisalid]=forms![field]![appraisalid]
THis works fine but I have some other statements in the on current event that gets some variables from the same form (field). When these statements are in place the appraisal form wont recognize the appraisalid but if I remove them then it will recongnize the appraisalid .
If you have any ideas they are welcome.
Thanks
I seem to be having a problem when I pass the primary key of one form to the foreign key of another form.
I am using appraisalid as the primary key in the field form and I am passing that value to appraisalid (the foreign key) of the appraisal form.
To assign the value I am using the before insert event of the appraisal form and I have this code:
Me![appraisalid]=forms![field]![appraisalid]
THis works fine but I have some other statements in the on current event that gets some variables from the same form (field). When these statements are in place the appraisal form wont recognize the appraisalid but if I remove them then it will recongnize the appraisalid .
If you have any ideas they are welcome.
Thanks