jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I have written a history routine, whereby if a record is changed (me.dirty) an append query runs, & appends the old data to a history table. I have used the field RefNo as the unique identifier. i have then referenced the field on the form as the criteria for running the query. However, the form can exist as itself, or as a subform within a master form. This raises a problem, in as much as the criteria parameter can come from two different locations. I put the first parameter in the first criteria field, & then as an OR criteria i put in the second possible location of RefNo. This works, but irrespective of which form is open, it asks for the other one. I could get around this by having two queries, but it will get very messy as we have over 30 forms!
So does anyone have any other suggestions as to how I can take the RefNo from either field, but without asking for the other one??? James Goodman
j.goodman00@btinternet.com
So does anyone have any other suggestions as to how I can take the RefNo from either field, but without asking for the other one??? James Goodman
j.goodman00@btinternet.com