Hi, it is probably very simple but I can work it out what is wrong. I've got a query initiated by a button on a form. That query should update fields based on what you choose from another field. For some reason I have to click twice on that button to see the changes on the form.
The code is:
Private Sub Equip_Data_Upd_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "equipment_update_qry", acViewNormal
DoCmd.Save
Forms![comp_statement_fm].Refresh
End Sub
Any ideas? I'm still a bit of a novice to do with VBA.
Thanks
Adrian
The code is:
Private Sub Equip_Data_Upd_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "equipment_update_qry", acViewNormal
DoCmd.Save
Forms![comp_statement_fm].Refresh
End Sub
Any ideas? I'm still a bit of a novice to do with VBA.
Thanks
Adrian