E
EyeTech
I have a need to pass a form name from one form to another in which the
original forms name will be used by the second form to populate a field on
the original after a search is done. I have been successful in passing the
form name in the OpenArgs parameter for the called form, but I have not been
able to use the arg or any other variable I might place the name in to
reference the original form.
If I pass "Form_A" in OpenArgs, I can confirm that it is succesfully passed
to Form_B, however, if I try to reference the original form as, for instance
Forms![Album Main 2]![Tracks Entry 1]![Song No] = Me![Song Id]
is my original. However, if I attempt to use a variable, such as OpenArgs...
Forms!OpenArgs![Tracks Entry 1]![Song No] = Me![Song Id]
it will fail. I have also passed the OpenArgs into a string variable and
used it, but it fails also.
My need is this. I am building a very large and complex database of music
which requires that the operator search for and place the correct song into
an album or cd tracks table. Since there are two criteria which make a song
unique TITLE and COMPOSERS, this operator intervention is necessary to ensure
that the correct piece is attached to each compilation. The problem is that I
have to use Form_B with various versions of Form_A, hence the need to be able
to simply pass the calling form name and use it for the back reference.
(Form_B closes when the correct entry is chosen by the operator.) It would
seem to make more sense to use the method I have described rather than make
several copies of Form_B, each hard-coded for each calling Form_A version.
Any thoughts, tips, castigations? All appreciatied.
Thanks,
Don
original forms name will be used by the second form to populate a field on
the original after a search is done. I have been successful in passing the
form name in the OpenArgs parameter for the called form, but I have not been
able to use the arg or any other variable I might place the name in to
reference the original form.
If I pass "Form_A" in OpenArgs, I can confirm that it is succesfully passed
to Form_B, however, if I try to reference the original form as, for instance
Forms![Album Main 2]![Tracks Entry 1]![Song No] = Me![Song Id]
is my original. However, if I attempt to use a variable, such as OpenArgs...
Forms!OpenArgs![Tracks Entry 1]![Song No] = Me![Song Id]
it will fail. I have also passed the OpenArgs into a string variable and
used it, but it fails also.
My need is this. I am building a very large and complex database of music
which requires that the operator search for and place the correct song into
an album or cd tracks table. Since there are two criteria which make a song
unique TITLE and COMPOSERS, this operator intervention is necessary to ensure
that the correct piece is attached to each compilation. The problem is that I
have to use Form_B with various versions of Form_A, hence the need to be able
to simply pass the calling form name and use it for the back reference.
(Form_B closes when the correct entry is chosen by the operator.) It would
seem to make more sense to use the method I have described rather than make
several copies of Form_B, each hard-coded for each calling Form_A version.
Any thoughts, tips, castigations? All appreciatied.
Thanks,
Don