Was this iPad bought as new or used?
if you've forgotten the original passcode then you will need to restore the iPad.
Make sure you have downloaded and installed the latest version of iTunes on your computer before attempting this:
(Mac users can run System Preferences > Software Update (or “Apple Store” for OS X 10.9 users) > Check now to get the latest version for their system in most cases.)
Disconnect all cables from your Apple iPad.
Open iTunes on the computer
Turn off the iPad (press the sleep/wake button on the top until you see the red slider and slide the red slider across to the right).
Press and hold the Home button. While holding the Home button, connect your iPad to the computer running iTunes. (If your iPad doesn't turn on automatically, turn it on.)
Continue holding the Home button until you see the Connect to iTunes screen.
iTunes will alert you that it has detected a device in recovery mode. Click OK, then restore the device.
It may ask whether you wish to restore a backup from iTunes or from iCloud. You should use which ever has the latest backup of your personal data.