Hi Guys,
Im finding difficulty implementing this code using ADODC control component. Any suggestions
Private Sub dbcClassType_Change()
Dim sql As String
sql = "SELECT * FROM RATE WHERE CLASSTYPE = '" & dbcClassType.Text & "'"
Set RS = New ADODB.Recordset
RS.Open sql, CON
CMD.ActiveConnection = CON
baseRate = RS!PRICE
weeklyDiscountRate = RS!WEEKLY
monthlyDiscountRate = RS!MONTHLY
weekendSpecialRate = RS!WEEKENDSPECIAL
txtAmountDue.Text = RS!PRICE
calculatedPrice = 0
End Sub
Im finding difficulty implementing this code using ADODC control component. Any suggestions
Private Sub dbcClassType_Change()
Dim sql As String
sql = "SELECT * FROM RATE WHERE CLASSTYPE = '" & dbcClassType.Text & "'"
Set RS = New ADODB.Recordset
RS.Open sql, CON
CMD.ActiveConnection = CON
baseRate = RS!PRICE
weeklyDiscountRate = RS!WEEKLY
monthlyDiscountRate = RS!MONTHLY
weekendSpecialRate = RS!WEEKENDSPECIAL
txtAmountDue.Text = RS!PRICE
calculatedPrice = 0
End Sub