Results of a query to define the field name in another query

jasonoski

New Member
Joined
Sep 8, 2004
Messages
27
I want to specify the data that populates a column with a query by using the results of the query. I need to accomplish this within the regular query builder. To define the field I used this:

TestCurr: (SELECT mtbl_TimeToDataBucket1.NRxBucket
FROM mtbl_TimeToDataBucket1
WHERE (mtbl_TimeToDataBucket1.Order)=37)

So column TestCurr should be populated with the single record returned from the query. Like saying TestCurr:"Result" but to get "Result" text string, I am using a query.

How do I accomplish this?

Thanks,
Jason
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Jason

I'm not 100% sure what you are after but the only way I think you could do this is using some VBA code.
 
Upvote 0
If I have to do it in code, I will. Would you mind posting a simple code example? I could probably figure it out from there.

Thanks!
 
Upvote 0
Jason

Can you explain exactly what you want to do?

Like I said in my original post I don't quite understand what you want.

Also any example of data and expected results would be helpful.
 
Upvote 0

Forum statistics

Threads
1,221,876
Messages
6,162,567
Members
451,775
Latest member
Aiden Jenner

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