RobTsintas
Technical User
I have created a query that successfully counts the number of records whose ID is the same as the value entered in a form's ID field.
What I want to do now is to use the AfterUpdate event of the form's ID field to look at the count value from the query, so that the user can be instantly alerted if that ID already exists.
I cannot, for the life of me, work out how to refer to the query's count field using VB Code.
(There isn't a 'Queries!' qualifier, like there is for 'Forms!' and 'Reports!', is there?)
Alternatively, if you can think of a better way to do what I need, tell me that instead.
Thanks.
What I want to do now is to use the AfterUpdate event of the form's ID field to look at the count value from the query, so that the user can be instantly alerted if that ID already exists.
I cannot, for the life of me, work out how to refer to the query's count field using VB Code.
(There isn't a 'Queries!' qualifier, like there is for 'Forms!' and 'Reports!', is there?)
Alternatively, if you can think of a better way to do what I need, tell me that instead.
Thanks.