P
P-chu via AccessMonster.com
A little assistance. Getting an error end if without block if. This is
based on the selection of the account number assigned to a particular set of
3 states. So if the combo box selection for AcctNum is 20, then I want the
combo box of the state Name to equal that number assigned to it.
Private Sub cbxAcctNum_AfterUpdate()
If Me!cbxAcctNum = "20" Then Me!cbxName = "Maryland"
If Me!cbxAcctNum = "35" Then Me!cbxName = "Illinois"
If Me!cbxAcctNum = "40" Then Me!cbxName = "Texas"
End If
End If
End If
End Sub
Thank you.
based on the selection of the account number assigned to a particular set of
3 states. So if the combo box selection for AcctNum is 20, then I want the
combo box of the state Name to equal that number assigned to it.
Private Sub cbxAcctNum_AfterUpdate()
If Me!cbxAcctNum = "20" Then Me!cbxName = "Maryland"
If Me!cbxAcctNum = "35" Then Me!cbxName = "Illinois"
If Me!cbxAcctNum = "40" Then Me!cbxName = "Texas"
End If
End If
End If
End Sub
Thank you.