caykamanj1966
Technical User
Example below:
I have a field on a form called: johnDoe
I have another field on that form called: forJohnDoeData
I have a combo box with values, which is called "purpose"
If I select one of the values, which is: junkMan, from the combo field "purpose" I have information that automatically appears in the field:
johnDoe.
Now since there is automatic data in johnDoe, I want the field: forJohnData, to automatically put a number "1" in that field.
I have the following code to this, but since I don't physically put data in the johnDoe field, the field "forJohnData" does not show the number 1, until I physically use the pulldown to select the data.
If Me.purpose = "junkMan" Then
Me.forJohnData = "1"
End If
How do I get the forJohnData to show the number 1 when anything automatically goes into the johnDoe field.
End If
I have a field on a form called: johnDoe
I have another field on that form called: forJohnDoeData
I have a combo box with values, which is called "purpose"
If I select one of the values, which is: junkMan, from the combo field "purpose" I have information that automatically appears in the field:
johnDoe.
Now since there is automatic data in johnDoe, I want the field: forJohnData, to automatically put a number "1" in that field.
I have the following code to this, but since I don't physically put data in the johnDoe field, the field "forJohnData" does not show the number 1, until I physically use the pulldown to select the data.
If Me.purpose = "junkMan" Then
Me.forJohnData = "1"
End If
How do I get the forJohnData to show the number 1 when anything automatically goes into the johnDoe field.
Code:
If Me.purpose = "junkMan" Then
Me.forJohnData = "1"
End If