UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Message box with contents of a text file    
 
   
BGAccess
post Jul 15 2008, 09:05 AM
Post #1

UtterAccess Guru
Posts: 673
From: Northwest Ohio



Hello all. I have a comma delimited file named poskip.csv. I would like to read this file and put the contents into a message box, but am not sure of the best way to do this. My file would look like the following:

1, 4, 7, 25

and I would like to create a message box that says "The following orders could not be processed at this time: PO 1, PO 4, PO 7, and PO 25." Do I import this file into a temporary table, and then loop through the records to come up with this, or is there an easy way to do this using only VBA?

Thanks for any help,
Kevin
Go to the top of the page
 
+
 
Start new topic
Replies
doctor9
post Jul 15 2008, 09:47 AM
Post #2

UtterAccess VIP
Posts: 9,294
From: Wisconsin



Kevin,

I would read the Access help on the Split Function (to split the comma-delimited text into an array of values).

With this tool, you can split the comma-delimited data into an array of values. From there, you can assemble the string to be displayed in the textbox by looping through the array of values.

Hope this helps,

Dennis
Go to the top of the page
 
+

Posts in this topic


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 05:42 PM