I know how to do this with Forms. I'm also aware that it is bad practice to use lookup fields in Tables. But I like to learn by exploring, and by experimenting to find out how stuff works. Don't jump to the conclusion I am trying to use this technique for a finished job, I'm not. I'm trying to learn. Basically, PLEASE no 'don't use lookup fields in tables' lecture. I have read that on SO many posts, and I have got that point.
[Totally by-the-way, please don't let this hijack your response, but why do Microsoft offer lookups as fields in Tables, when so many experts are so vociferously against it?]
Anyway, if you do write a Select query in a table field with a WHERE clause, and within the WHERE criteria you reference a parameter, and you keep it numerical, it works.
But if you ask the query to take this parameter from another field in the same table (because this parameter should vary depending on the record), Access won't have it. It gives a parameter entry prompt.
It is as though when you reference another field for the parameter value, Access doesn't understand that the parameter varies, doesn't understand that the user wants it to look at the PARTICULAR RECORD for a PARTICULAR VALUE for the parameter. It seems to want either a general value for the parameter, or to prompt the user every time. Would there be a third way? There may something I don't understand here about how to code queries (there is a lot I don't understand), and if so I'd like to know what.
[Totally by-the-way, please don't let this hijack your response, but why do Microsoft offer lookups as fields in Tables, when so many experts are so vociferously against it?]
Anyway, if you do write a Select query in a table field with a WHERE clause, and within the WHERE criteria you reference a parameter, and you keep it numerical, it works.
But if you ask the query to take this parameter from another field in the same table (because this parameter should vary depending on the record), Access won't have it. It gives a parameter entry prompt.
It is as though when you reference another field for the parameter value, Access doesn't understand that the parameter varies, doesn't understand that the user wants it to look at the PARTICULAR RECORD for a PARTICULAR VALUE for the parameter. It seems to want either a general value for the parameter, or to prompt the user every time. Would there be a third way? There may something I don't understand here about how to code queries (there is a lot I don't understand), and if so I'd like to know what.