If your order price and size matches the ask, your order will fill. If you do an AON order for 1000 shares when the ask is only 100 shares, you won't get filled.