Question : How to set Textbox to accept only numeric inputs?

Hi Everyone,

  Is there a way for a textbox in Excel 2007 VBA that restricts the user to key in only numeric values? Like the property in VB .NET? TIA.

Answer : How to set Textbox to accept only numeric inputs?

All you need is :

select *
from
(
select vehid, count(1) mycount
from VehInfo
group by vehid
)
where mycount = 1 ;  
--> if you have 1, it will get you all veh which had only 1 record i.e 101,104,107

so just change 1 to 2 and 3 it will give all the data you wanted for the other queries.

for the last query, you can change it to

select *
from
(
select vehid, count(1) mycount
from VehInfo
group by vehid
)
where mycount >= 4 ;  

Thanks
Random Solutions  
 
programming4us programming4us