the car will start when dash lights are on will start and die when they are not on 1997 Buick Skylark

when I turn the key on and the dash light come on, oil pressure seat belt, air bag and etc the car will start if they do not light up the car will start and quit

Asked by for the 1997 Buick Skylark
When you attempt to start the car and the lights do not come on, does cycling the key a few times result in a change and them working? The first thought is that the ignition switch is failing, but one has to also consider that you could be losing power to the switch. A good electrical technician would solve this easily.
yes they will work for a little bit then quit again