I have attached the following code to the on click event of a button on my main form:
Forms![frmChinsListSFA]![subformChinsListSFA].Form![Quantity] = DlookUp ("[Quantity]", "tblChinsListProcDefaults", "[ProcNo]=" & Forms![frmChinsListSFA]![subformChinsListSFA].Form![procNo] & " AND [ID]=" & Forms![frmChinsListSFA]![subformChinsListSFA].Form![ID])
The subform (record source is a table) has about 300 records. When I click the button, the update doesn't work except when I highlight a record. Then it updates only for that record and not for the other 299 records.
Can anybody please tell me why all the records are not updated?
Thanks,
Al
ps I tried hitting Ctrl + A to highlight all the records and then hit the button, but that did not work.