G
Guest
I have a form with 16 checkboxes. Each one Q01 through Q016 represent a
quarter of a quarter of a square mile. They are layed out in a square with 4
checkboxes in each quarter of the grid. The description will be built for
each quarter of the grid. For example, the upper quarter is the north east
quarter of the square mile. It is layed out like this:
2 1
3 4
If only Q01 is checked the description is "NE 1/4 - NE 1/4"
If only Q02 is checked the description is "NW 1/4 - NE 1/4"
If only Q03 is checked the description is "SW 1/4 - NE 1/4"
If only Q04 is checked the description is "SE 1/4 - NE 1/4"
If Q02 and Q01 are checked the description is N "1/2 - NE 1/4"
If Q03 and Q04 are checked the description is S "1/2 - NE 1/4"
If Q02 and Q03 are checked the description is W "1/2 - NE 1/4"
If Q01 and Q04 are checked the description is "E 1/2 - NE 1/4"
If all four are checked the description is "NE 1/4"
I'm a VBA novice. I am thinking that I need to assign a value of 1 through
9 to each of these circumstances. I have created a table with the thirty six
allowable values and descriptions. I'm thinking that I can do a dblookup in
that table and use the related to update the "Land Description" field on my
main form.
The Quarter Selection form has a button named Update Description. This
module is triggered by the button's click event.
Please help.
quarter of a quarter of a square mile. They are layed out in a square with 4
checkboxes in each quarter of the grid. The description will be built for
each quarter of the grid. For example, the upper quarter is the north east
quarter of the square mile. It is layed out like this:
2 1
3 4
If only Q01 is checked the description is "NE 1/4 - NE 1/4"
If only Q02 is checked the description is "NW 1/4 - NE 1/4"
If only Q03 is checked the description is "SW 1/4 - NE 1/4"
If only Q04 is checked the description is "SE 1/4 - NE 1/4"
If Q02 and Q01 are checked the description is N "1/2 - NE 1/4"
If Q03 and Q04 are checked the description is S "1/2 - NE 1/4"
If Q02 and Q03 are checked the description is W "1/2 - NE 1/4"
If Q01 and Q04 are checked the description is "E 1/2 - NE 1/4"
If all four are checked the description is "NE 1/4"
I'm a VBA novice. I am thinking that I need to assign a value of 1 through
9 to each of these circumstances. I have created a table with the thirty six
allowable values and descriptions. I'm thinking that I can do a dblookup in
that table and use the related to update the "Land Description" field on my
main form.
The Quarter Selection form has a button named Update Description. This
module is triggered by the button's click event.
Please help.