Many dot matrix printers especially 24pin printers print very acceptable barcodes from their own internal fonts, if the size is large enough. The number of barcode fonts may be limited eg code 39, 2 of 5, 128 etc. This depends on the model of printer.
Store the barcode data in a field. When printing you will have to sent control codes to the printer that causes the printer to switch to the required barcode font. Barcodes often add an extra character which is used as a validation feature, and you may have to calculate this extra digit and add it to the data you are encoding in the barcode.
This is not easy, but can be done. If you are a skilled programmer it is easy, otherwise consisder using some barcode software which will do the printing from a text delimited file you create from Dbase.