Bring Table value in Query Criteria

raj08536

Active Member
Joined
Aug 16, 2007
Messages
322
Office Version
  1. 365
Platform
  1. Windows
I want to bring 1* in the criteria on my query

1665495068799.png



1665495136256.png


It's not working. It ask me
1665495190638.png



what I need to change here to bring 1* automatically?

Thanks
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Or what i need to make change on this line

WHERE (((SFRGLTotals_202201_01.SCODE)=[Prop#].[Prop]));
 
Upvote 0
Have you actually added the "Prop#" table to your query?
 
Upvote 0
You need to do that.

If there is only one record in your "Prop#" table, then you do not need to worry about doing a join between the table, as the Cartesian product of records will just result in the number of records in the other table (before the filter is applied).
 
Upvote 0
Solution
It worked without joining.
1665497554826.png


Thanks a lot.

How can I only get records start with 1 only (right now I use 1* and it gives me any records which has 1?
 
Upvote 0
One more question: I am running Append query to different Table based on starting number e.g. 1* data will be appended to Prop1 and 2* will be appended to Prop2. I will have 10 tables. Can I somehow have an option to choose which table data will be added on the run of query?
 
Upvote 0
One more question: I am running Append query to different Table based on starting number e.g. 1* data will be appended to Prop1 and 2* will be appended to Prop2. I will have 10 tables. Can I somehow have an option to choose which table data will be added on the run of query?
Possibly, if you do it all by VBA instead.
But that would be a new/different question.
 
Upvote 0

Forum statistics

Threads
1,224,946
Messages
6,181,940
Members
453,074
Latest member
JefersonKollet

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