Engine light ocassionally comes on on 1996 BMW Z3

Engine light on sometimes,

Asked by for the 1996 BMW Z3
Can you supply the trouble codes that are causing the light to come on? Are you experiencing any driveability problems?
How can I get the code? Z3 drives great
tighten gas cap, drive for awhile see if light goes off, if does get a new cap! I had same problem!