Hi all hopefully someone can help me with this, I think it should be possible but I'm not sure how to do it, my access experience is limited.
If this is a question that has been answered somewhere else a link to a guide would be appreciated however I cannot currently find one.
I have a very simple Access 2007 database consisting of 2 tables, one table to recieve the answers to a questionaire and one to store values used by combo controls on the input form.
The lookup table consists of a unique ID, an intended target table name, a field name mirroring the field name in the target table and a text description to be featured in the combo box.
I intend to use the following query for each combo box to supply the appropriate values.
Is there a way to detect **TARGET TABLE NAME** and **TARGET FIELD NAME** from the current form to save me doing this manually each time??
thanks in advance for any help you can give me with this.
Normm
If this is a question that has been answered somewhere else a link to a guide would be appreciated however I cannot currently find one.
I have a very simple Access 2007 database consisting of 2 tables, one table to recieve the answers to a questionaire and one to store values used by combo controls on the input form.
The lookup table consists of a unique ID, an intended target table name, a field name mirroring the field name in the target table and a text description to be featured in the combo box.
I intend to use the following query for each combo box to supply the appropriate values.
Code:
select ID, description
from lookuptable
where tablename = "**TARGET TABLE NAME**" and
fieldname = "**TARGET FIELD NAME**"
Is there a way to detect **TARGET TABLE NAME** and **TARGET FIELD NAME** from the current form to save me doing this manually each time??
thanks in advance for any help you can give me with this.
Normm