Hey guys,
I have a form [Names] with an embedded subform [Names_sub]. The subform is lists of customers with a toggle on each record. The subform is linked to a query that is built directly on a table. The toggle is linked to "AddToList" field. The toggle changes the value to 1 or 2, 1 adds the name to the mailing list, 2 does not. I have a text box on [Names] with
Code:
=DCount("Name","T_DreamRooms","[AddToList] = '1' AND [Salesperson] = '" & [SlspSelect] & "'")
On the AfterUpdate of the toggle, I have that DCount being requeried (sp?). All of the code is working, and the update is working. The problem is the dcount seems to be 1 less. If I select 3 names, the dcount will show 2. If I close that form (with those 3 names selected) and reopen it, it will say 3. Its like the [AddToList] value isn't changing until the next name is selected or the form closes. Is there a way to remedy this?
I have to have a count of selected records, and it has to be updated as soon as a name is selected.
I hope I gave enough info, let me know if you need more.