Article ID: 162074
Article Last Modified on 1/19/2007
Condition Action ------------------------------ [PrintLabelsFor]=1 SetValue Action Arguments -------------------------------------- Item: [SelectCountry].[Enabled] Expression: Noit will be converted to the following:
With CodeContextObject If (.PrintLabelsFor = 1) ThenNote the . (dot) operator that precedes PrintLabelsFor. The ! (exclamation point) operator should be used instead of the . (dot) operator.
With CodeContextObject
' Attached to the Customer Labels Dialog form.
' Attached to the PrintLabelsFor option group.
If (!PrintLabelsFor = 1) Then
' If user selects All Countries, do not enable the SelectCountry
' combo box.
!SelectCountry.Enabled = False
End If
If (!PrintLabelsFor = 2) Then
' If user selected Specific Country, enable the SelectCountry
' combo box.
!SelectCountry.Enabled = True
' Go to the SelectCountry
DoCmd.GoToControl "SelectCountry"
End If
End With
Keywords: kbprb kbprogramming KB162074