Can you please provide an example? I am still bit lost as to how do I do this. What I tried to do after the update is click on the "Refresh" button which will close the form, run the make table qry, and re open the form. Should I put the above steps in module and run that module on click ?
How to run make table query on an active table used by a form?
Collapse
X
-
-
ok I tried that but it didn't work. I created a module with a function called mktbl which had maketable qry followed by open form command. It gave me the same error when it tries to execute maketable qry
Any other idea?
Thanks for your helpComment
-
Clear the on click event from the button and paste this into it:
Code:Me.tbl_Raw_Data_by_Account_subform.Form.RecordSource = "" DoCmd.RunMacro "mcr_mktbl_Raw_Data_by_Account" Me.tbl_Raw_Data_by_Account_subform.Form.RecordSource = "tbl_Raw_Data_by_Account" Me.Refresh Me.Requery
Comment
-
It worked. I used the following Code
Code:tbl_Raw_Data_by_Account_subform.Form.RecordSource = "" DoCmd.RunMacro "mcr_mktbl_Raw_Data_by_Account" tbl_Raw_Data_by_Account_subform.Form.RecordSource = "tbl_Raw_Data_by_Account" tbl_Raw_Data_by_Account_subform.Form.Refresh tbl_Raw_Data_by_Account_subform.Form.Refresh
Comment
Comment