MLCouden

Path to folder and mxd

Discussion created by MLCouden on Jan 7, 2013
Latest reply on Jan 8, 2013 by Wayne_Whitley
I'm trying to program my Map button. I have a dialog box that has them select a type of station and then select a district. So if they select a type of station that takes them to a certain folder and then from the type of district that was selected it opens an mxd in that folder. My program is written as such :
Private Sub cmdMap_Click()

Dim cboStations As String
If cboStations = "Annual" Then gotofolder "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012"
Else
gotofolder "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\Urban_Maps"

Dim districts As String
Dim cboDistrict As String
If cboDistrict = "Abilene" Then getmxd "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012\Abilene\Abilene_Base_Map.mxd"
Elif
cboDistrict = "Amarillo" then getmxd "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012\Amarillo"

Am I on the right track or not?????

Outcomes