hi all,
i have table with a memo column , i want to build query to divide all the text in the column to many column .
exactly like the option in excel which called
text to column .
kind regards
sherif
hi all,
i have table with a memo column , i want to build query to divide all the text in the column to many column .
exactly like the option in excel which called
text to column .
kind regards
sherif
Hi sherif,
Look at the attached that will do what I think you are looking for.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
thanks marvinp
i know how to do it in excel , but i am wondering if that possible in access ?
thanks again
Sorry, I didn't see the Access part of the title.
In Access you need to define each field in the table before filling them in. In your question it seems you don't know how many words there will be in the Memo field, or how many fields/columns to define in the beginning. It seems an easier problem would be to make each word it's own record in a table, but that isn't what I think you now want.
I'd be looking for an index number of each field in each record of the Access table. Then you could increment the index and go to the next field to put the memo words in.
The easiest way to do this is to export the table to Excel, us the text to columns feature, then import back into access.
If you absolutely have to do it all in Access, as MarvinP said, you'll need a way to find the max number of words to set up your table. You need to open your original table as a recordset, then loop through each record. You can use a function like this to find the number of spaces. The highest word count should be the number of spaces + 1.
Spaces = Ubound(Split(strRecord," "))
Hope that helps.
Last edited by davegugg; 11-08-2011 at 11:20 AM.
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
thank you so much dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks