i don't believe this combination has ever been studied. nothing in the literature so my personal recommendation to you is don't do it or you could theoretically become the first bactrim/marijuana adverse reaction case.
is their a conflict of smoking marijuana while on bactrim ds?