If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query Syntax
Hi,
Can anyone quickly tell me the correct syntax for an added field in a query that will say If Prefix = Dr. or Rev. then enter Prefix & " " (space), else "" (do nothing) & FirstName, etc (I have all the rest) Thanks, Lana |
#2
|
|||
|
|||
Query Syntax
IIf([Prefix] = "Dr." Or [Prefix] = "Rev.", [Prefix] & " ", "") &
[FirstName], etc -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Lana" wrote in message ... Hi, Can anyone quickly tell me the correct syntax for an added field in a query that will say If Prefix = Dr. or Rev. then enter Prefix & " " (space), else "" (do nothing) & FirstName, etc (I have all the rest) Thanks, Lana |
#3
|
|||
|
|||
Query Syntax
Hi Doug,
Thanks so much for the concise, really quick response. I appreciate it. Lana |
Thread Tools | |
Display Modes | |
|
|