Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax help

Status
Not open for further replies.

Monzer

Programmer
May 24, 2002
26
CA
Hello everyone;
I have an append query that appends all the requested records to a table for processing. Here is my question.
I have a feild called[AccType]for checking or savings, when running the append query I would like the data in feild[AccType] appear as follow:if checking=P and if savings=S.
Any help would be appreciated.
Thanks in advance
 
assuming tha in AccType you have only values "checking" and "saving", nothing else and no nulls, you can use iif like:

Code:
iif([AccType] = "checking", "P", "S")

can you please post the SQL of your append Query, that you have so far? I'd try to complete it as you need it.

HTH,
fly


[blue]Typos, that don't affect the functionality of code, will not be corrected.[/blue]

Martin Serra Jr.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top