Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / February 2006

Tip: Looking for answers? Try searching our database.

splitting address from one field to two

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
denise - 19 Jan 2006 20:39 GMT
In address fields I need to split the 2nd line of the address into a separate
field. The addresses (if there is a second line) are searated by carriage
return.
Any ideas for how I can get the 2nd line and put them into a separate column?
Thanks for any help.
John Nurick - 19 Jan 2006 21:38 GMT
Hi Denise,

I'd use a little custom function like this and call it from the update
query:

 Public Function GetSecondLine(V As Variant) As Variant

   On Error Resume Next 'to return Null if there's only one line
   SafeSplit = Split(V, vbCrLf)(1)

 End Function

>In address fields I need to split the 2nd line of the address into a separate
>field. The addresses (if there is a second line) are searated by carriage
>return.
>Any ideas for how I can get the 2nd line and put them into a separate column?
>Thanks for any help.

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Ozzie - 03 Feb 2006 16:10 GMT
Hi John,

I am trying to do something similar to the previous post but am struggling.

I have an odbc link to some tables, one of which has 24columns of data
entered into one and seperated by a semi-colon, eg "-125.23;-356.23;-12564.
59" etc

I need to break out these numbers and put them into their own field...... but
how ???

any help would be most welcome,

Thanks, David

>Hi Denise,
>
[quoted text clipped - 18 lines]
>
>Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.