within an ace of doing something

within an ace of (doing) something

mod. very close to doing something. We were within an ace of beating the all-time record.
See also: ace, of, within