dash lights on 1990 Chevrolet Cavalier

When I turn on the headlights, the dashlights go out???

Are your park lights working? The park lights also supply power for the dash back lighting. If the park lights are working then check the dash lights fuse. If there is no power the fuse then the fault could be the dash light dimmer switch.