IIf Function?

2

2Blessed4Stress

I have 6 text fields labled Eqp1, Eqp 2,...etc. I want to combine the data
in the fields starting with Eqp6 and working backwards. All of the fields do
not contain data. The end result should look like:
Field 6 text * Field 5 text * Field 4 text* etc.....

Can anyone help me write this for my qry in the simplist way? I tried using
nested IIf, but I'm leaving something out and getting an error message in the
expression builder.
 
O

Ofer Cohen

Try something like

[Field 6] + "*" & [Field 5] + "*" & [Field 4] + "*" & [Field 3] + "*" &
[Field 2] + "*" & [Field 1] + "*"
 
M

Marshall Barton

2Blessed4Stress said:
I have 6 text fields labled Eqp1, Eqp 2,...etc. I want to combine the data
in the fields starting with Eqp6 and working backwards. All of the fields do
not contain data. The end result should look like:
Field 6 text * Field 5 text * Field 4 text* etc.....

Can anyone help me write this for my qry in the simplist way? I tried using
nested IIf, but I'm leaving something out and getting an error message in the
expression builder.


The expression wizard just gets in my way, so I just trye
the expression.

Mid(("*" + F6) & ("*" + F5) & ("*" + F4) & ... , 2)
 

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