Referencing a query's results

FKoenig

Board Regular
Joined
Jul 27, 2011
Messages
85
I have 2 text boxes and a query on a form called "Adjustment Form"

[Text box A] is for volume adjustments, [Text box B] is for volume adjustment %'s.

The query (Q2b) always contains a single record with 4 columns: "Actuals", "Active Volume", "As Sold Volume", and "Revenue".

I would like to set up the "On Exit" event for "Text Box A" so that when you exit the text box it sets the value of Text box B to be = [Text Box A] / "As Sold Volume" from query Q2b.

I'd also like to set up the "On Exit" event for "Text Box B" so that, when you exit the text box, it sets the value of Text box A to be = [Text Box B] * "AS Sold Volume" from query Q2b.

I'm an Access Novice. I've set up "clear" buttons for both boxes with the simple line Me.TextBoxA.Value = 0 and the same for B.

Where I'm stuck is referencing the query results in the value. Any help?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,203,350
Messages
6,054,900
Members
444,760
Latest member
TeckTeck

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