I have a form with a set of option groups on it, and I have discovered that when using option groups, they store the selection in the table as a number, rather than text. So, I thought I could simply change the value in the properties box - and that didnt work at all...
So... I did some research online, and found that you could create a hidden text box that would, based on the selection, match a value to a string of text in VB. Here is such an example that I have implemented.
Code:
Private Sub Frame404_AfterUpdate()
Select Case Me![Frame404]
Case 1
Me![Text618] = "80+"
Case 2
Me![Text618] = "79-50"
Case 3
Me![Text618] = "49-33"
Case 4
Me![Text618] = "32-"
End Select
End Sub
This seems it should work, however, the value does not transfer to the text box, and i get this error:
"The expression After Update you entered as the event property setting produced the following error: A problem occured while Microsoft Access was communicating with the OLE server or ActiveX Control.
*The expression may not result in the name of a macro, the name or a user-defined function, or [Event Procedure].
*There may have been an error evaluating the function, event, or macro.
Show Help >>
This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs."
Does anyone know what is going on and how this is corrected?