Hi,
I am stuck with the following problem:
[problemsituation]
I have a table tblContracts with the fields week1, week2, week3... week52. In these fields are prices.
I have a query for a report which shows the orderinput per week.
[problem/question]
In the query is a weeknumber present.
I want to search in the table tblContracts in the field names of week1, week2, week3, etc. and then pick the price for the looking contract.
For example:
Weeknumber 12 is present. The query will search in the table tblContracts in the field names for '12'. It finds 'week12' and picks the price ($ 10) which is in the field of the right contract.
[own solution]
I think something with DLookup or DCount but these functions will search in the fields which are filled in and not in the field names... or am I thinking wrong?!?
Please help...
Thanks,
JiTS
I am stuck with the following problem:
[problemsituation]
I have a table tblContracts with the fields week1, week2, week3... week52. In these fields are prices.
I have a query for a report which shows the orderinput per week.
[problem/question]
In the query is a weeknumber present.
I want to search in the table tblContracts in the field names of week1, week2, week3, etc. and then pick the price for the looking contract.
For example:
Weeknumber 12 is present. The query will search in the table tblContracts in the field names for '12'. It finds 'week12' and picks the price ($ 10) which is in the field of the right contract.
[own solution]
I think something with DLookup or DCount but these functions will search in the fields which are filled in and not in the field names... or am I thinking wrong?!?
Please help...
Thanks,
JiTS