IIf Function?

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

Guest

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.
 
Try something like

[Field 6] + "*" & [Field 5] + "*" & [Field 4] + "*" & [Field 3] + "*" &
[Field 2] + "*" & [Field 1] + "*"
 
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

Similar Threads

Access IIF and Instr function 1
Nested IIF for Hierachy 1
Nested IIF Statement in a query 4
Iif Statment 7
IIF Statement 2
nested iif function 4
Multiple IIf's 6
IIF function help in query 3

Back
Top