G
Guest
this is my table structure
lower upper price
100 200 $7.20
200 300 $8.10
300 400 $10.90
from here i want to extract the price depend the input limit value
for eg:// if the limit value entered in textbox is 150 .it should
navigate the table
and give the correct price for this limit value $7.20
my code is:
Do Until rstAISI4140NQT.EOF
If Txtlimit.Value <= rstAISI4140NQT("upper") And Txtlimit.Value >=
rstAISI4140NQT("lower") Then
Txtpkg.Value = rstAISI4140NQT("price")
MsgBox (" price calculated ")
Exit Do
Exit Sub
End If
rstAISI4140NQT.MoveNext
Loop
by this code i cannot get the price value..i found frm this code that
operator
it doesnot check the"<=" condition
"<=" doesnot work in this looping..
plz give me some solution
(e-mail address removed)
lower upper price
100 200 $7.20
200 300 $8.10
300 400 $10.90
from here i want to extract the price depend the input limit value
for eg:// if the limit value entered in textbox is 150 .it should
navigate the table
and give the correct price for this limit value $7.20
my code is:
Do Until rstAISI4140NQT.EOF
If Txtlimit.Value <= rstAISI4140NQT("upper") And Txtlimit.Value >=
rstAISI4140NQT("lower") Then
Txtpkg.Value = rstAISI4140NQT("price")
MsgBox (" price calculated ")
Exit Do
Exit Sub
End If
rstAISI4140NQT.MoveNext
Loop
by this code i cannot get the price value..i found frm this code that
operator
it doesnot check the"<=" condition
"<=" doesnot work in this looping..
plz give me some solution
(e-mail address removed)