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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch between data in Access

Status
Not open for further replies.

JackONeill

Programmer
Joined
Mar 8, 2004
Messages
65
Location
US
Hi,

I d like to made a query on two columns.

A: 1,2,3,4,5,6,7,0,0,0,0
B: 0,0,0,0,0,0,0,3,4,5,6

What i want to do is when in column A there is a "0" it take the value of column B

So the Result is :

C: 1,2,3,4,5,6,7,3,4,5,6

Any idea to build the funcion in Ms Acces ?

 
In your example, you could create a query:
SELECT A+B as C
FROM tblA

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top