klynshoe
Board Regular
- Joined
- Jun 17, 2010
- Messages
- 176
Hello,
I am using the instructions at this website adapted to Access 2013. I am trying to create an option box where the numerical values get translated to my desired text values in a table field.
The Option Group is name 'Frame64' where my bounded text box is named 'SponsorName'. The Option Group Values are numbered 1 through 8.
Here's my VBA code to make the translation:
USING ACCESS 2013 - I AM A BEGINNER ACCESS AND VBA USER.
I am using the instructions at this website adapted to Access 2013. I am trying to create an option box where the numerical values get translated to my desired text values in a table field.
The Option Group is name 'Frame64' where my bounded text box is named 'SponsorName'. The Option Group Values are numbered 1 through 8.
Here's my VBA code to make the translation:
Private Sub Frame64_AfterUpdate()
Select Case Me.Frame64.Value
Case 1
SponsorName.Value = "21st/71st"
Case 2
SponsorName.Value = "DNDO"
Case 3
SponsorName.Value = "DTRA"
Case 4
SponsorName.Value = "FBI"
Case 5
SponsorName.Value = "JSOC"
Case 6
SponsorName.Value = "NECC"
Case 7
SponsorName.Value = "NECC(P)"
Case 8
SponsorName.Value = "USNORTHCOM"
End Select
End Sub
This code is not working... the text box (and table field) is picking up the numerical value, not the translated text value. How do I fix this?
USING ACCESS 2013 - I AM A BEGINNER ACCESS AND VBA USER.
Last edited: