![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have been away from this for a long time and seem to have forgotten much of which I learned. This syntax will always only ever return one record and I need to use the value returned in the column "IPT_Rates.IPT_Percentage". What am I missing? Is the use of "Column() if so where? Thanks in advance from one frustrated brain dead amateur. Dim iptCurrent As String iptCurrent = "SELECT IPT_Rates.IPT_Percentage, IPT_Rates.IPT_RateChangeStartDate, IPT_Rates.IPT_RateChangeFinish " _ & "FROM IPT_Rates " _ & "GROUP BY IPT_Rates.IPT_Percentage, IPT_Rates.IPT_RateChangeStartDate, IPT_Rates.IPT_RateChangeFinish " _ & "HAVING (((IPT_Rates.IPT_RateChangeStartDate)<=([Forms]![frmPolicy]! [txtPeriodStartDate])) " _ & "AND ((IPT_Rates.IPT_RateChangeFinish)>=([Forms]![frmPolicy]! [txtPeriodStartDate])));" |
#3
| |||
| |||
|
|
I have been away from this for a long time and seem to have forgotten much of which I learned. *This syntax will always only ever return one record and I need to use the value returned in the column "IPT_Rates.IPT_Percentage". *What am I missing? *Is the use of "Column() if so where? Thanks in advance from one frustrated brain dead amateur. Dim iptCurrent As String iptCurrent = "SELECT IPT_Rates.IPT_Percentage, IPT_Rates.IPT_RateChangeStartDate, IPT_Rates.IPT_RateChangeFinish " _ & "FROM IPT_Rates " _ & "GROUP BY IPT_Rates.IPT_Percentage, IPT_Rates.IPT_RateChangeStartDate, IPT_Rates.IPT_RateChangeFinish " _ & "HAVING (((IPT_Rates.IPT_RateChangeStartDate)<=([Forms]![frmPolicy]! [txtPeriodStartDate])) " _ & "AND ((IPT_Rates.IPT_RateChangeFinish)>=([Forms]![frmPolicy]! [txtPeriodStartDate])));" |
![]() |
| Thread Tools | |
| Display Modes | |
| |