Query Numbers

jsonne

New Member
Joined
May 6, 2004
Messages
40
I need to query from a table numbers that go like:

81307-2050 to 813007-8010
81308-1000 to 81308-2090

so if I only want information for anything in the 81308 rows - how do I set the criteria?

I tried "81308*" but no luck
thanks for the help :LOL:
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Your criteria should look like:

Like "81308*"

Notice that you need the word "Like" in there.
 
Upvote 0
Tried the Like "81408*" but it returned nothing. The table's field name is Docket ID, Data Type-Number with Combo Box and Row Source set as
SELECT [Docket].[ID], [Docket].[Docket] FROM Docket;

My main objective was just to isolate all the 81408's.

Thanks for any further help. :confused:
 
Upvote 0
Where's the criteria (WHERE statement) in your SQL statement? It should look like:

SELECT Docket.ID, Docket.Docket
FROM Docket
WHERE (((Docket.ID) Like "81308*"));


I created a database like you described, set up some examples, and tested the above code and confirmed that it does indeed work.
 
Upvote 0

Forum statistics

Threads
1,221,819
Messages
6,162,155
Members
451,749
Latest member
zack_ken

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