I'm designing a database which takes into consideration the total square footage of a house and multiplies it by a predetermined multiplier to determine the cost. However, the table with the predetermined multipliers is designed for every 200 sq. ft.
IE:
Total Sq. foot - - - - Multiplier
400 - - - - - - - - - - - 1.032
600 - - - - - - - - - - - 1.025
800 - - - - - - - - - - - 1.013
1000 - - - - - - - - - - - 1.000
1200 - - - - - - - - - - - 0.992
etc, etc to 6000 sq. ft
I have another query which takes into consideration the info provided by the user and returns a sq. footage. but this number may be 1120.
What I'm trying to do is take this "1120" and round it up to 1200, so a value for the multiplier would correspond.
So far this is the best function I've been able to get return some value, however it's retuning really strange numbers like and every time I go from design mode to datasheet view, I get a different result.
IE:
Total Sq. foot - - - - Multiplier
400 - - - - - - - - - - - 1.032
600 - - - - - - - - - - - 1.025
800 - - - - - - - - - - - 1.013
1000 - - - - - - - - - - - 1.000
1200 - - - - - - - - - - - 0.992
etc, etc to 6000 sq. ft
I have another query which takes into consideration the info provided by the user and returns a sq. footage. but this number may be 1120.
What I'm trying to do is take this "1120" and round it up to 1200, so a value for the multiplier would correspond.
So far this is the best function I've been able to get return some value, however it's retuning really strange numbers like and every time I go from design mode to datasheet view, I get a different result.
Code:
SELECT [que:Main].Shape, [que:Main].[Total Sq Footage], Rnd([que:Main]![Total Sq Footage]) AS [Sq Foot]
Comment