If you receive an invitation from a hotel program, you'll have all the airlines and only that hotel program. If you receive from an airline, you'll have only that airline and all hotel programs. If you receive from something that is not a hotel or airline (like Blockbuster or Hertz), you'll have access to any program.
An exception is British Airways, they allow access only to their program.