mcdhappy80
Registered User.
- Local time
- Today, 11:09
- Joined
- Jun 22, 2009
- Messages
- 347
Here's what I want to do:
I have a value which I enter in text field. The value type is double.
I have a table in my database, that constantly holds 6 records, from which I create recordset.
Here's the table with the data it holds:
tblScale
dblScaleValue--------dblValueFrom--------dblValueTo
0,00--------0,00--------0,00
1.000,00--------0,01--------4.000,00
1.500,00--------4.000,01--------5.500,00
2.300,00--------5.500,01--------8.000,00
3.000,00--------8.000,01--------15.000,00
4.000,00--------15.000,01--------99.999.999.999,00
Now, I need to loop through all 6 records in the recordset, compare in which range (dblValueFrom - dblValueTo) is the entered value, end depending on that write down the according value from dblScaleValue field.
Can someone write down the code template on how would I do this?
Thank You.
I have a value which I enter in text field. The value type is double.
I have a table in my database, that constantly holds 6 records, from which I create recordset.
Here's the table with the data it holds:
tblScale
dblScaleValue--------dblValueFrom--------dblValueTo
0,00--------0,00--------0,00
1.000,00--------0,01--------4.000,00
1.500,00--------4.000,01--------5.500,00
2.300,00--------5.500,01--------8.000,00
3.000,00--------8.000,01--------15.000,00
4.000,00--------15.000,01--------99.999.999.999,00
Now, I need to loop through all 6 records in the recordset, compare in which range (dblValueFrom - dblValueTo) is the entered value, end depending on that write down the according value from dblScaleValue field.
Can someone write down the code template on how would I do this?
Thank You.
Last edited: