Help on the following would be appreciated:
I have a query which returns a list of customer_ID, name, address etc (several hundred records).
I use a form to display the data fields from the query, & it works OK.
There is a table that lists about 50 customer_IDs for customers who do not wish to be contacted.
My problem is that I would like to include a text box on the form that indicates whether a customer is to be contacted or not.
The logic for the text box is basically . . .
For the current record on the form:
Look up the customer_ID in the contact table;
If the customer_ID exists in that table, then set the text box to "don't contact"
If the customer_ID does not exist in that table, set the text box to "OK to contact".
Is this achievable with the expression builder, or with VBA ? Any code would be welcome.
Thanks
I have a query which returns a list of customer_ID, name, address etc (several hundred records).
I use a form to display the data fields from the query, & it works OK.
There is a table that lists about 50 customer_IDs for customers who do not wish to be contacted.
My problem is that I would like to include a text box on the form that indicates whether a customer is to be contacted or not.
The logic for the text box is basically . . .
For the current record on the form:
Look up the customer_ID in the contact table;
If the customer_ID exists in that table, then set the text box to "don't contact"
If the customer_ID does not exist in that table, set the text box to "OK to contact".
Is this achievable with the expression builder, or with VBA ? Any code would be welcome.
Thanks