Acces07 - Textboxes not displaying results after query

whitesabbathica9

New Member
Joined
Jun 3, 2008
Messages
47
I have a form where the user selects start and end dates in textboxes. The query (after hitting a button) sums data in 8 fields, resulting in 1 row, 8 columns of data. I have 8 corresponding form textboxes linked to these fields.

My problem is the form does not update the textboxes as the query is run, but only continues to display what the query's values were upon opening the form (before the dates wer input).

How can I refresh the form's textboxes? Or is there a better way than binding the textboxes to the query's fields? I am an Excel guy and am just getting started with Access and would appreciate any help/tips. Thanks.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You could try Me.requery in the Button's Click event, after the code that does the SUMming.
 
Upvote 0
Works great!
Had some trouble figuring out how to get the code from the MacroBuilder to the VBE, but I made it. Thx for the help.
 
Upvote 0
You're welcome, good luck with your project.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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