Safari
Member
- Local time
- Today, 09:08
- Joined
- Jun 14, 2021
- Messages
- 95
Dear SirIn your query named updateStoretransaction, if you switch it to SQL view, you have the following:
Code:WHERE (((StoreTransaction.invoiceid)=[Forms]![invoicehead]![invoiceid]));
This will force your update query to update only one record at a time. In the body of the query, you have elements like this:
Code:UPDATE StoreTransaction SET StoreTransaction.itemstoreid = [Forms]![invoicehead]![invdetails Subform]![itemname], StoreTransaction.unit = [Forms]![invoicehead]![invdetails Subform]![unit], ...
This implies that you have only one record at a time on the form where you are gathering data. I would say this single-record update behavior is absolutely correct behavior for the combination of the query that you have used and the data sources you are employing. From this particular form, you do NOT want to update all records at once. It will contain only one record's worth of data. There is no justification for making it store data in more than one record at a time.
You insist that the problem is not solved yet. Therefore, we are looking at one of two things happening here. Either
(a) you do not understand some project that you have inherited from someone else or
(b) your description of "not updating every record" doesn't mean to you what it sounds like it means to us, which would imply a language barrier issue.
I am not going to make assumptions either way, but I will categorically state that the problem AS YOU HAVE DESCRIBED IT is totally not possible to fix at any level. The code is not broken.
Iam here to learn , I'm not a expert like you .. so keep calm when you advice me or anyone else..
Thanks for your kind efforts