T
Tim
I have 2 fields that contain numeric values. I want to use VB code to find
missing values in field Number based on the data in field Location.
For example
Location Number
20 1
20 3
20 4
20 5
20 7
30 1
30 2
30 5
I want to populate a text box with an available value from Number based on
the value in Location. In the example above there is no number 2 for location
20 or no number 3 or 4 for Location 30. I want to have a command button
labeled "Next Available Number." If location 20 is choosen from a combo box
the code will look for an unassigned number for this location. In this case 2
and 6 are available and assign the next available number. If location 30 is
choosen then 3 or 4 are available.
Can you please help??
ThanX
Tim
missing values in field Number based on the data in field Location.
For example
Location Number
20 1
20 3
20 4
20 5
20 7
30 1
30 2
30 5
I want to populate a text box with an available value from Number based on
the value in Location. In the example above there is no number 2 for location
20 or no number 3 or 4 for Location 30. I want to have a command button
labeled "Next Available Number." If location 20 is choosen from a combo box
the code will look for an unassigned number for this location. In this case 2
and 6 are available and assign the next available number. If location 30 is
choosen then 3 or 4 are available.
Can you please help??
ThanX
Tim