noobiegal
04-16-2006, 07:33 AM
Hi All, Im a newbie in Access/VBA and would like some help.
I got 3 tables called A,B,C. All with 3 Columns (Level, Min Dist, Max Dist).
I wanna make a form
The controls which i wanna haf are as follows:
- drop down list that allows me to choose A, B or C.
- 2 txtbox which allows user to input a Level and Distance in it. After which, they press a button which will take the value they input and compare to the value in the table. It will look up the level from the table and then compare whether the distance is within the Min Dist and Max Dist. If yes, show a msgbox, if no, show another msgbox.
The problem now is that i got no idea how to code "look up the level from the table and then compare whether the distance is within the Min Dist and Max Dist. If yes, show a msgbox, if no, show another msgbox." into the to the onclick of the button.
Your help is much appreciated.
I got 3 tables called A,B,C. All with 3 Columns (Level, Min Dist, Max Dist).
I wanna make a form
The controls which i wanna haf are as follows:
- drop down list that allows me to choose A, B or C.
- 2 txtbox which allows user to input a Level and Distance in it. After which, they press a button which will take the value they input and compare to the value in the table. It will look up the level from the table and then compare whether the distance is within the Min Dist and Max Dist. If yes, show a msgbox, if no, show another msgbox.
The problem now is that i got no idea how to code "look up the level from the table and then compare whether the distance is within the Min Dist and Max Dist. If yes, show a msgbox, if no, show another msgbox." into the to the onclick of the button.
Your help is much appreciated.