Dick7Access
Dick S
- Local time
- Today, 12:37
- Joined
- Jun 9, 2009
- Messages
- 4,253
Experimenting I tried this code to change the label to display the full name of the state on the form. Is there a shorter way than putting 49 more states after the if?
Code:
Private Sub cmdStates_Click()
DoCmd.OpenForm "frmChurchesAll"
DoCmd.ApplyFilter "qryFindState"
lblTxtSt = txtState
If txtState = "FL" Then
lblTxtSt = "Florida"
End If
lblTxtSt.BackColor = 15658720
lblTxtSt.Visible = True
lblStatesof.Visible = True
lbAllChurches.Visible = False
End Sub /CODE]
D7