I have a continuous form where the field "Notes" is reliant on the results of a few tests done on other fields.
All of the test need to be done on each record as the form loads.
These tests include checking for no data in a field, dcount a list for duplicate entries and comparing the entries in two fields.
The results of these tests will populate the "Notes:" field.
How do I achieve this as the form loads, or is scrolled?
I imagine each test is to be done with a query but how to combine the three queries?
test 1 checks for no data in a particular field and returns "No Data"
test 2 "dcounts" the table for duplicate entries in an image number field and returns "Duplicate" if the result is greater than 1.
test 3 Checks two fields with the same data from different sources. If different returns "Family".
I assume the tests are to be done with queries but how do I run all three queries on each record as it loads?
I am running the tests using "if" statements in the "oncurrent" event but this only populates as I change records.
All of the test need to be done on each record as the form loads.
These tests include checking for no data in a field, dcount a list for duplicate entries and comparing the entries in two fields.
The results of these tests will populate the "Notes:" field.
How do I achieve this as the form loads, or is scrolled?
I imagine each test is to be done with a query but how to combine the three queries?
test 1 checks for no data in a particular field and returns "No Data"
test 2 "dcounts" the table for duplicate entries in an image number field and returns "Duplicate" if the result is greater than 1.
test 3 Checks two fields with the same data from different sources. If different returns "Family".
I assume the tests are to be done with queries but how do I run all three queries on each record as it loads?
I am running the tests using "if" statements in the "oncurrent" event but this only populates as I change records.