You need to have the shares in your demat account as on the record date to qualify for shareholder quota in IPOs. This means that you need to purchase the parent company shares couple of days in advance.