If you're talking about a form that is based on that table, and if you have a textbox that the person types in the number 1210, then on its After Update event you can put something like
Dim intWidth as Integer
intWidth = DLookUp("[Width]", "CostTable", "[Width] >= " & Me.txtWidth)
This will pull out the first width that is equal or greater than the width you entered into the textbox. Replace "CostTable" with real name of your table. I called the textbox txtWidth.
From there you can get the height and cost using the DLookUp function again.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|