first of all what model honda are u driving????
the abs ecu use a nonerasable type of memory u can disconect it for 5 years and it wont forget the code
assuming youre driving an 96 - 00 model heres the procedure
1.locate your cars ecu (the main ecu that cntrols the engine,usually on the pasenger side ) ,ON TOP OF THE ECU YOU SHULD FIND A BROWN AND BLACK FEMALE CONNECTOR JUST LYING THERE,usually it is covered with a green cap..This is your diagnostic port.
2.Next ,take a short piece of wire and bridge this female connector,ie.the brown wire must connect to the black vice versa..
3.turn on your ignition , dont start the car,,now youre abs light on the dash should start playing morse code,these codes explainn what the precise problem is eg.1long flash 1 quick flash = disconected or failed fr wheel speed sensor.
4. to reset the abs ecu turn ignition off ,STEP 2 depress brake pedal,turn ignition on STEP 3,the abs light will go off after about 2 seconds. STEP 4 .after the light goes off release the pedal,the light will then come on after about 4 seconds. STEP 5 when the light comes on press the pedal again STEP.6 the light will go off again,the relase pedal.
the light will now blink a number of times to confirm the code has been erased
SOUNDS COMPLEX BUT THE PRESSING AND RELASING BECOMES INTUITIVE AFTER THE SECOND TRY
This will work asuming u drive a similair model to mine,let me know how it goes