A
Anna Peters via AccessMonster.com
The following url at is an example of url's stored in the stat_keywords
table: /index.cfm?
section_id=24&need_help_stat_id=5&geriatric_topic_id=4&sub_section_id=33&page_id=48&tab=1
I needed to split the url at the '&', see the following code:
Private Sub Command10_Click()
Dim strURL As String
Dim tempstring As String
Dim counter As Integer
Dim p As Integer
Dim i As Integer
counter = 0
strURL = "index.cfm?
section_id=24&geriatric_topic_id=4&sub_section_id=34&page_id=49&tab=2"
For p = 1 To Len(strURL)
tempstring = Mid(strURL, p, 1)
If tempstring = "&" Then counter = counter + 1
Next p
For i = 1 To counter
tempstring = Split(strURL, "&")(i)
MsgBox tempstring
Next i
End Sub
I now need the split values to be stored into the fields in the
stat_keywords table, here are the fields section_id, need_help_stat_id,
geriatric_topic_id, sub_section_id, and page_id.
table: /index.cfm?
section_id=24&need_help_stat_id=5&geriatric_topic_id=4&sub_section_id=33&page_id=48&tab=1
I needed to split the url at the '&', see the following code:
Private Sub Command10_Click()
Dim strURL As String
Dim tempstring As String
Dim counter As Integer
Dim p As Integer
Dim i As Integer
counter = 0
strURL = "index.cfm?
section_id=24&geriatric_topic_id=4&sub_section_id=34&page_id=49&tab=2"
For p = 1 To Len(strURL)
tempstring = Mid(strURL, p, 1)
If tempstring = "&" Then counter = counter + 1
Next p
For i = 1 To counter
tempstring = Split(strURL, "&")(i)
MsgBox tempstring
Next i
End Sub
I now need the split values to be stored into the fields in the
stat_keywords table, here are the fields section_id, need_help_stat_id,
geriatric_topic_id, sub_section_id, and page_id.