I did the same in Basic. Then briefly looked at using DBase with Basic before finding DataFlex.