Using the "Switch Function"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the switch function to recognize a value in one
field,(USER ID), and based upon that value change the value in another feild,
(text box 43). The user id feild is a drop down type feild and the switch
function does not seem to recognize the values in the drop down field. I get
an error that says (Name?) in text box 43 field.

Is there a way to get that function to recognize values in a drop down type
feild?
 
sonfitz said:
I am trying to use the switch function to recognize a value in one
field,(USER ID), and based upon that value change the value in
another feild, (text box 43). The user id feild is a drop down type
feild and the switch function does not seem to recognize the values
in the drop down field. I get an error that says (Name?) in text box
43 field.

Is there a way to get that function to recognize values in a drop
down type feild?

What expression are you using?
 
I am trying to use the switch function to recognize a value in one
field,(USER ID), and based upon that value change the value in another feild,
(text box 43). The user id feild is a drop down type feild and the switch
function does not seem to recognize the values in the drop down field. I get
an error that says (Name?) in text box 43 field.

Is there a way to get that function to recognize values in a drop down type
feild?

Two points:

- We cannot see your database, and have no way to tell what's wrong
with your Switch function since we can't see it. Coult you post the
expression?

- More important: if you can determine the value based on the UserID,
then you should almost certainly NOT be trying to store the value that
you're looking up/calculating in any other field; in fact the Switch()
function is probably not necessary, if you can create a Table to
provide the translation from userID to whatever the Switch() function
is intended to produce.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top