Dim sSQL1 As String
Dim oRST1 As ADODB.Recordset
Set oRST1 = New ADODB.Recordset
Dim oConnect1 As ADODB.Connection
Set oConnect1 = New ADODB.Connection
sSQL1 = "SELECT [ORIGIN],[DESTINATION],[DRY VAN],[HEATER],[REEFER] FROM [CP_RAIL 2011 rates] WHERE " _
& "ORIGIN ='" & Form33.origin_cp_rail.Text & "' AND " _
& "DESTINATION ='" & Form33.destination_cp_rail.Text & "' and " _
& "DRY VAN ='" & Form33.commodity.Text & "' or " _
& "HEATER ='" & Form33.commodity.Text & "' or " _
& "REEFER ='" & Form33.commodity.Text & "'"
oConnect1.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & parameter.cp_rail.Text
oRST1.Open sSQL1, oConnect1
Form33.CP_RAIL_rate.DataField = ""
Set Form33.CP_RAIL_rate.DataSource = oRST1
Form33.CP_RAIL_rate.DataField = "DRY VAN" Or Form33.CP_RAIL_rate.DataField = "HEATER" Or Form33.CP_RAIL_rate.DataField = "REEFER"
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE