You need to post your code including the header so we can see what event and control it is in. dLookup() doesn't seem to make sense in this context.
Hi,
on my form, there is a button that runs an append query. Then, my table is updated.
The hazard is that i may click button for a second time and duplicate the records in the table.
To avoid this, i have added a text box on my form that counts the records in that table.
If text box is >1 then button is disabled, else, button = enabled.
To count the records i can use in this text box the
1. Dlookup function , or
2. count the subform records , =[Onesubform].[Form]![Onecontrol]
In both cases 1 or 2 , the text box outlines the correct number of records. say 59, which is >1 and therefore btn should turn to disable
HOWEVER in option 2, the update button doesn't turn to disable. It works only in option one , only by using dlookup
