In my table if have fields like Carrier, BL and others.
In the table with carriers i have already created fields like URL1 and URL2.
All carriers have their own way of building a url for tracking purposes.
So i wanted to create a module so i can directly see the actual status of every shipment, in a AxtiveX Control (webbrowser)
For every carrier want to define a rule to build the url.
Who could help me to create a first start of the module, or tell me what i am doing wrong.
Option Compare Database
Option Explicit
Dim URL As String
Function Tracking_URL(Carrier As Byte, BL As String, URL1 As String, URL2 As String)
If Carrier = 58 Then ' Place here the carrier ID
URL = "URL1 & BL & URL2"
Else
End If
If Carrier = 62 Then ' Place here the carrier ID
URL = "URL1 & BL"
Else
URL = "Empty"
End Function
G.
In the table with carriers i have already created fields like URL1 and URL2.
All carriers have their own way of building a url for tracking purposes.
So i wanted to create a module so i can directly see the actual status of every shipment, in a AxtiveX Control (webbrowser)
For every carrier want to define a rule to build the url.
Who could help me to create a first start of the module, or tell me what i am doing wrong.
Option Compare Database
Option Explicit
Dim URL As String
Function Tracking_URL(Carrier As Byte, BL As String, URL1 As String, URL2 As String)
If Carrier = 58 Then ' Place here the carrier ID
URL = "URL1 & BL & URL2"
Else
End If
If Carrier = 62 Then ' Place here the carrier ID
URL = "URL1 & BL"
Else
URL = "Empty"
End Function
G.