Your engine starts but will only run for about two seconds on a 97 achieva?

I have the same problem when I first turn on the ignition there are no dash lights and it will start and die like yours. If I turn the switch on and off or just turn it on and wait, eventually I get dash lights and starts fine. There must be a relay or connection point causing this problem - anyone know where these are? Chuck