Hi,
I have a textbox on my form which is populated by VBA code. I want this details to be updated in a query as soon as I type in the data / by the time I move to the next textbox. A pop up form has to display the data in the query. I have placed the following code on the change event of the textbox. If I manually type in a value in the text box, the query gets updated but when it is populated by vba code after a calculation, it does not. Is there anyway that I can achieve what i want?
I have a textbox on my form which is populated by VBA code. I want this details to be updated in a query as soon as I type in the data / by the time I move to the next textbox. A pop up form has to display the data in the query. I have placed the following code on the change event of the textbox. If I manually type in a value in the text box, the query gets updated but when it is populated by vba code after a calculation, it does not. Is there anyway that I can achieve what i want?
Code:
DoCmd.OpenQuery "qryCLCDDetail"
DoCmd.Requery
Forms!frmCLCDDetail.Requery
DoCmd.Close acQuery, "qryCLCDDetail", acSaveYes