[ask] ms access expression get text after multiple "/"

threadbooster

New member
Local time
Today, 09:56
Joined
Feb 27, 2013
Messages
6
hello i want to ask something
currently i have access table field like this

|folder |
|C:/aaaa/bbbb/cccc/dddd/eeee/fffff/gggg/|
|C:/aaaaa/bbbbb/ccccc/ddddd/eeeee/ffffff/ggggg/|

i want to add "subfolder" field , that the value from "folder" field text after 4th char "/" before 5th "/" and the result will be like this

|folder | subfolder
|C:/aaaa/bbbb/cccc/dddd/eeee/fffff/gggg/| dddd
|C:/aaaaa/bbbbb/ccccc/ddddd/eeeee/ffffff/ggggg/| ddddd

how i write an expression to get this value

please kndly your help

thx
 
And don't add a field to your table. Write a query ...
Code:
SELECT Folder, Split(Folder, "/")(4) As SubFolder
FROM tblTable
 
And don't add a field to your table. Write a query ...
Code:
SELECT Folder, Split(Folder, "/")(4) As SubFolder
FROM tblTable

where i put this code in access query ?
please help
 

Attachments

  • attachhhhh.PNG
    attachhhhh.PNG
    6.8 KB · Views: 88
And don't add a field to your table. Write a query ...
Code:
SELECT Folder, Split(Folder, "/")(4) As SubFolder
FROM tblTable

where i put this in access query form ??
 

Attachments

  • attachhhhh.PNG
    attachhhhh.PNG
    6.8 KB · Views: 91
In a new colum in the field row copy:

Code:
SubFolder:Split(Folder, "/")(4)
 

Users who are viewing this thread

Back
Top Bottom