Hi Guys,
I am working on Billing database. I have two form frmBill & frmBillDetails, both have queries which need to run on the fly based on (new or updated) data entered by the user.
I am using Dlookup command to pass the arguments to the query and get the desired results.
Till here everything is fine. Now as i load the form query runs and returns the answer based on the current arguments, but when I enter new data or update nothing happens. To counter this I used requerry command in AfterUpdate event of the field TAX in frmBillDetails. But the problem is as soon the requerry runs the tab goes to the very first record of the current form. For Example in frmBillDetails, if I have 15 Sub details for the current sub form and I am making a change in 14 record, requery will move the focus to the very first record. Similar problem is being faced in frmBill, in that if I am working on bill number 35, after requery it will move to bill number 1.
I want to run the requery but keep the focus right where it was. Kindly help on how to achieve this. Thanks.
Regards
Deepak Gupta