Hi All,
I have a form "frmCandM" where i would like to click a command button & update all of the rates in the opened recordset in subform "subfrmAdbriMasonry".
I need to abide by the following criteria:
If Me.Qty < 3 And Me.PricePeriod = 1 Then
Forms!frmCandM!subfrmAdbriMasonry!JDRate = DLookup("[JDRate]", "qryContractRatesAdbri1", "
I have a form "frmCandM" where i would like to click a command button & update all of the rates in the opened recordset in subform "subfrmAdbriMasonry".
I need to abide by the following criteria:
If Me.Qty < 3 And Me.PricePeriod = 1 Then
Forms!frmCandM!subfrmAdbriMasonry!JDRate = DLookup("[JDRate]", "qryContractRatesAdbri1", "
Code:
=Forms!frmCandM!subfrmAdbriMasonry!Code")
Forms!frmCandM!subfrmAdbriMasonry!SubyRate = DLookup("[SubyRate]", "qryContractRatesAdbri1", "[Code]=Forms!frmCandM!subfrmAdbriMasonry!Code")
Forms!frmCandM!subfrmAdbriMasonry!MinQty = 3
Else
If Me.Qty >= 3 And Me.PricePeriod = 1 Then
Forms!frmCandM!subfrmAdbriMasonry!JDRate = DLookup("[JDRate]", "qryContractRatesAdbri1", "[Code]=Forms!frmCandM!subfrmAdbriMasonry!Code")
Forms!frmCandM!subfrmAdbriMasonry!SubyRate = DLookup("[SubyRate]", "qryContractRatesAdbri1", "[Code]=Forms!frmCandM!subfrmAdbriMasonry!Code")
Forms!frmCandM!subfrmAdbriMasonry!MinQty = Me.Qty
End If
End If
Can anyone point me in the right direction on how to incorporate this into a Do/While/Loop method to update all of the records on my subform "subfrmAdbriMasonry"? OR, am i barking up the wrong tree & should i be using an UPDATE statement?:confused::eek: