Print Merge and Barcode?

I need to prepare the artwork for 1000 member cards with the membership number present as a barcode.

How can I generate the barcode for each individual card without doing it one by one?