Subform refresh....

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
I have a subform that runs off a query. Within that subform is a yes/no checkbox. What I want to achieve is when the checkbox is selected and put to "yes", the form is updated and the record is removed. I tried creating a macro that performs a requery "On Enter" when the checkbox was selected. Didn't work. Kept coming up with Apply Filter issues. Is there a way to do this. Where should I put the requery function. Under the entire form or the control source. Very limited to VB. Any help is appreciated.

Frank
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I would do it on the Click event ou After Update event.
You may also find that you need to refer to the subform via the main form.
Forms![MainFormName]![SubFormName].Requery

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top