Hi, Tina,
What you can do, if it makes things easier for you, is to declare a, b, c,
etc. as global variables in your form's VBA, and in the form's OnCurrent
event you can initialize them. E.g.
a = 1
b = 2.45
c = a/b
etc.
After the user selects his choices, you can put in the textbox's AfterUpdate
event the following code:
Dim strMid As String, sglNum As Single, sglTot as Single, Cntr As Integer
For Cntr = 1 to Len(Me.YourTextboxName)
strMid = Mid(Me.YourTextboxName,Cntr,1)
.... now you can analyze if you have a number, a letter (that you can
compare with your already assigned global variables), etc. You can compute
them into sglNum, and add the computation to sglTot as you go.
Next Cntr
I think this will get you where you want to be.
Sam
It is in Access, and I was incorrect in calling it a cell. It is a text box
in a form that is linked to a table. The user needs to choose from a list of
acronyms in each text box and then I need to calculate the formula based on
the number of acronyms that appear in the form, however, the problem that I
am having is that the acronyms do not have a value.
There are cells in Excel, but no cells in Access. What you are talking about
doesn't seem to have anything to do with Access. Please clarify.
[quoted text clipped - 6 lines]
formula to tell it to give it a (x,y,z,a or b) value (I am assuming)? I am
so lost. If anyone can help I would really appreciate it.