E
EricG
I have a form that has a sub-form on it. The contents of the sub-form are
keyed to the userID of the record on the main form. Originally, the contents
of the sub-form were drawn from a table that stored the user's information,
keyed on userID. Now, for reasons not worth going into, I'm storing that
information on a hidden form instead. Doing this has broken the sub-form and
I'm trying to figure out why.
This is how the query for the sub-form looks now:
SELECT tbl_Team_Info.* FROM tbl_Team_Info WHERE (((tbl_Team_Info.[Parent
ID])=[Forms]![frm_Hidden_User_Info]![TXT_currentUserID]));
"TXT_currentUserID" is one of the text boxes on the form.
When I view this query with the builder in datasheet view, it works fine.
However, when I bring up the main form, or even the sub-form, the sub-form is
empty. It doesn't seem to be drawing the data from 'tbl_Team_Info' like it
did before.
Sorry for the long winded explanation. Any hints regarding what I've done
wrong or which laws of proper database construction I've broken will be
greatly appreciated.
Thanks,
Eric
keyed to the userID of the record on the main form. Originally, the contents
of the sub-form were drawn from a table that stored the user's information,
keyed on userID. Now, for reasons not worth going into, I'm storing that
information on a hidden form instead. Doing this has broken the sub-form and
I'm trying to figure out why.
This is how the query for the sub-form looks now:
SELECT tbl_Team_Info.* FROM tbl_Team_Info WHERE (((tbl_Team_Info.[Parent
ID])=[Forms]![frm_Hidden_User_Info]![TXT_currentUserID]));
"TXT_currentUserID" is one of the text boxes on the form.
When I view this query with the builder in datasheet view, it works fine.
However, when I bring up the main form, or even the sub-form, the sub-form is
empty. It doesn't seem to be drawing the data from 'tbl_Team_Info' like it
did before.
Sorry for the long winded explanation. Any hints regarding what I've done
wrong or which laws of proper database construction I've broken will be
greatly appreciated.
Thanks,
Eric