EX-99.2 8 a2239833zex-99_2.htm EX-99.2
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 99.2

[LETTERHEAD OF SANDLER O'NEILL & PARTNERS, L.P.]

CONSENT OF SANDLER O'NEILL & PARTNERS, L.P.

We hereby consent to the inclusion of our opinion letter to the Board of Directors of Frederick County Bancorp, Inc. (the "Company") as an Annex to the Joint Proxy Statement/Prospectus relating to the proposed merger of the Company with ACNB Corporation contained in Amendment No. 1 to the Registration Statement on Form S-4, as filed with the Securities and Exchange Commission, and to references to such opinion and the quotation or summarization of such opinion in such Proxy Statement/Prospectus and Amendment No. 1 to the Registration Statement. In giving such consent, we do not admit that we come within the category of persons whose consent is required under Section 7 of the Securities Act of 1933, as amended (the "Act"), or the rules and regulations of the Securities and Exchange Commission thereunder (the "Regulations"), nor do we admit that we are experts with respect to any part of such Proxy Statement/Prospectus and Amendment No. 1 to the Registration Statement within the meaning of the term "experts" as used in the Act or the Regulations.

/s/ Sandler O'Neill & Partners, L.P.

New York, New York
October 16, 2019

QuickLinks

Exhibit 99.2

[LETTERHEAD OF SANDLER O'NEILL & PARTNERS, L.P.]
CONSENT OF SANDLER O'NEILL & PARTNERS, L.P.