investment

I have investment interest deduction for loan on raw land for speculation that keeps rolling to the next year.  I also sell stocks each year in a company which gives me a capital gain.  Your help button says that I can not do capital gain and use the interest to off set the gain.  It also says Quick Books will ask me if I wish to do that.  It does not ask me.  I would like to use up some of this  built up investment interest to off set these gains. Thanks