I have a problem that I have been trying to solve and have looked all over for a solution with no success. I know the solution is probably simple and I am probably over thinking this. Here is the situation:
tblNeeds: I have a series of fields with different items that a customer might need to have fixed. Items are labeled TR, OC, BR, etc. These are actually blank fields so any of those codes can go into any of the fields. Next to each filled is a Yes/No field that start off as unchecked (not done) but will eventually be checked (done), but not all at once.
Through the process of this application some of these "jobs" will be done. I have gone through the transaction table and pulled out the codes for these transactions and through a series of queries eventually get it down to a text string that puts all the completed codes into that string. In the query the String looks like this: 'BR', 'OC', 'TR'. That is the order they were done. Side note, I have actually made a second query to change the output to: ('BR', 'OC', 'TR') but don't think that is really what is going to work, but I have tried. The query I think I need to use is titled qry_Needs_List with two fields: CustID and List
What I am trying to do is do an Update query to change the first "Need" field to true. The Yes/No field is titled Need1_Filled (the field with the code is Need1).
I have tried doing an update query with tblNeeds linked to the query via CustID. I have the Need1_Filled set to be updated to True/Yes. There is no criteria set for this column. The next column I have it set up as Need1 from tblNeeds with the criteria like this: In (Select List from qry_Needs_List).
Other things I have tried: double parentheses In ((Select List from qry_Needs_List)).
putting List in brackets, think I also did the same to the query.
since the table and query are linked just doing In (List), also doing double parentheses and/or brackets.
Probably have tried other things but can't remember.
If I copy the query result - 'BR', 'OC', 'TR' directly into the criteria section: In ('BR', 'OC', 'TR'), the query will change the the Yes/NO field to Yes. That is the only thing that has worked but obviously isn't a doable solution. I think the query works but I am not pulling the code part correctly but can't figure out how. If I put "Select List from qry_Needs_List" in a blank query in the SQL code format, it pulls the correct info. So it has to be the criteria section.
Any thoughts or suggestions would be greatly appreciated.
tblNeeds: I have a series of fields with different items that a customer might need to have fixed. Items are labeled TR, OC, BR, etc. These are actually blank fields so any of those codes can go into any of the fields. Next to each filled is a Yes/No field that start off as unchecked (not done) but will eventually be checked (done), but not all at once.
Through the process of this application some of these "jobs" will be done. I have gone through the transaction table and pulled out the codes for these transactions and through a series of queries eventually get it down to a text string that puts all the completed codes into that string. In the query the String looks like this: 'BR', 'OC', 'TR'. That is the order they were done. Side note, I have actually made a second query to change the output to: ('BR', 'OC', 'TR') but don't think that is really what is going to work, but I have tried. The query I think I need to use is titled qry_Needs_List with two fields: CustID and List
What I am trying to do is do an Update query to change the first "Need" field to true. The Yes/No field is titled Need1_Filled (the field with the code is Need1).
I have tried doing an update query with tblNeeds linked to the query via CustID. I have the Need1_Filled set to be updated to True/Yes. There is no criteria set for this column. The next column I have it set up as Need1 from tblNeeds with the criteria like this: In (Select List from qry_Needs_List).
Other things I have tried: double parentheses In ((Select List from qry_Needs_List)).
putting List in brackets, think I also did the same to the query.
since the table and query are linked just doing In (List), also doing double parentheses and/or brackets.
Probably have tried other things but can't remember.
If I copy the query result - 'BR', 'OC', 'TR' directly into the criteria section: In ('BR', 'OC', 'TR'), the query will change the the Yes/NO field to Yes. That is the only thing that has worked but obviously isn't a doable solution. I think the query works but I am not pulling the code part correctly but can't figure out how. If I put "Select List from qry_Needs_List" in a blank query in the SQL code format, it pulls the correct info. So it has to be the criteria section.
Any thoughts or suggestions would be greatly appreciated.