My Assistant
|
|
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 |
|
|
|
![]() |
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 |
|
|
|
BGACCESS Message box with contents of a text file Jul 15 2008, 09:05 AM
djsteele Re: Message box with contents of a text file Jul 15 2008, 09:28 AM
BGACCESS Re: Message box with contents of a text file Jul 15 2008, 10:43 AM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 05:42 PM |