I have a problem formatting text in a rich text control on an Access Form.
On the clipboard I have an array in the following format:
ITEM<TAB>PART<TAB>QTY<TAB>DESC<CR>1<TAB>ABC123<TAB>1<TAB>WIDGET<CR>...
As you can see each record is delimited by a carriage return whilst each field is delimited by a tab.
What I need is a function that will remove the tabs (keeping the carriage returns) and replace them with variable length text so that the columns line up when inserted into the rich text box on the form, as shown below:
ITEM PART QTY DESC
1 ABC123 1 WIDGET
Anyone have any previous code or can offer some guidance it would be appreciated.
Thanks
On the clipboard I have an array in the following format:
ITEM<TAB>PART<TAB>QTY<TAB>DESC<CR>1<TAB>ABC123<TAB>1<TAB>WIDGET<CR>...
As you can see each record is delimited by a carriage return whilst each field is delimited by a tab.
What I need is a function that will remove the tabs (keeping the carriage returns) and replace them with variable length text so that the columns line up when inserted into the rich text box on the form, as shown below:
ITEM PART QTY DESC
1 ABC123 1 WIDGET
Anyone have any previous code or can offer some guidance it would be appreciated.
Thanks