S
Saeed
Consider the following with Access 2000:
1. FormA has SUbFormB as a sub form
2. FormC also has SubFormB as a sub form
3. A search form FormD allows the user to search records, and the user
then clicks for either FormA or FormC, passing in the appropriate ID so
that the form displays the correct data.
4. FormC was created as a copy of FormA and then amended to work
slightly differently.
The problem is that when the user clicks for FormA, the ID does not
appear to be getting passed to FormA. But when the user clicks for FormC
it works fine. Debugging the on click event for both buttons shows that
the value of ID is set correctly, but the Form_Load event of FormA
showed the ID as null. Prior to the creation of FormC this worked fine
for FormA.
I do have code in the Form_Load event of the sub form which detects what
the parent form is makes a button visible/invisible depending.
The code looks fine, and I am wondering if this anything to do with the
subform in each called form being the same one.
Saeed
ng_786
1. FormA has SUbFormB as a sub form
2. FormC also has SubFormB as a sub form
3. A search form FormD allows the user to search records, and the user
then clicks for either FormA or FormC, passing in the appropriate ID so
that the form displays the correct data.
4. FormC was created as a copy of FormA and then amended to work
slightly differently.
The problem is that when the user clicks for FormA, the ID does not
appear to be getting passed to FormA. But when the user clicks for FormC
it works fine. Debugging the on click event for both buttons shows that
the value of ID is set correctly, but the Form_Load event of FormA
showed the ID as null. Prior to the creation of FormC this worked fine
for FormA.
I do have code in the Form_Load event of the sub form which detects what
the parent form is makes a button visible/invisible depending.
The code looks fine, and I am wondering if this anything to do with the
subform in each called form being the same one.
Saeed
ng_786