Can a textbox Control Source reference specific fields ?

S

Steve G.

Is it possible for a textbox Control Source to reference a specific field
based on a true/false condition? If so, what is the expression?

Simplified… if the value of a temporary value is true, I need the Control
Source to reference field A, otherwise, I need the Control Source to
reference field B.
Any help would be appreciated!
Thanks…
 
J

Jack Cannon

Steve,

I should add that I have never got this to work in AC2000 or earlier.
I have only got it to work in AC2002 or later.

Jack Cannon

Jack Cannon said:
Steve,

Try This:
=IIf(Boolean Expression,[FieldA],[FieldB])

Jack Cannon

Steve G. said:
Is it possible for a textbox Control Source to reference a specific field
based on a true/false condition? If so, what is the expression?

Simplified… if the value of a temporary value is true, I need the Control
Source to reference field A, otherwise, I need the Control Source to
reference field B.
Any help would be appreciated!
Thanks…
 
S

Steve G.

Jack,
I'm using AC2007 and it worked fine.
Thanks for your quick response!
Steve

Jack Cannon said:
Steve,

I should add that I have never got this to work in AC2000 or earlier.
I have only got it to work in AC2002 or later.

Jack Cannon

Jack Cannon said:
Steve,

Try This:
=IIf(Boolean Expression,[FieldA],[FieldB])

Jack Cannon

Steve G. said:
Is it possible for a textbox Control Source to reference a specific field
based on a true/false condition? If so, what is the expression?

Simplified… if the value of a temporary value is true, I need the Control
Source to reference field A, otherwise, I need the Control Source to
reference field B.
Any help would be appreciated!
Thanks…
 

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

Top