rikklaney1
Registered User.
- Local time
- Yesterday, 16:43
- Joined
- Nov 20, 2014
- Messages
- 157
If I have a form with multiple list boxes, lets say named 10, 20 and 30.
and multiple text fields called 15,25,and 35. Now I want to get a value in the list box based on the text box value so I make row source queries that looks like this.
SELECT
.field1,[table1].field2 FROM [table1] WHERE ((([table1].field2)=[Forms]![form1]![15]));
SELECT
.field1,[table1].field2 FROM [table1] WHERE ((([table1].field2)=[Forms]![form1]![25]));
SELECT
.field1,[table1].field2 FROM [table1] WHERE ((([table1].field2)=[Forms]![form1]![35]));
So now my question... Is it possible to make one query that picks up the 15,25 or 35 depending on wether it is being queried from 10, 20, or 35. The difference in name is always the same except for the first number so could it be made to reference where it is asked from?
and multiple text fields called 15,25,and 35. Now I want to get a value in the list box based on the text box value so I make row source queries that looks like this.
SELECT
SELECT
SELECT
So now my question... Is it possible to make one query that picks up the 15,25 or 35 depending on wether it is being queried from 10, 20, or 35. The difference in name is always the same except for the first number so could it be made to reference where it is asked from?