Multiple Output Per Conditions

G

Guest

In an update query, can I somehow do the following:
If Condition 1 is met update a field in a table from null to "-1"
If Condition 2 is met update the field to "-0.5"
If Condition 3 is met update the field to " 0"

The conditions are
1) TimeCharged -1 + PrevBal > 0
2) TimeCharged -1 + PrevBal = -0.5
3) TimeCharged -1 + PrevBal < -0.5
 
G

Guest

The statement in the update to would be like
'IIf([time]=1,1,IIf([time]<1,-0.05,+0.05))'
 
G

Guest

Thank you for your response. It sent me in the right directions. Thx again

Martin J said:
The statement in the update to would be like
'IIf([time]=1,1,IIf([time]<1,-0.05,+0.05))'

--
HTH
Martin J


neenmarie said:
In an update query, can I somehow do the following:
If Condition 1 is met update a field in a table from null to "-1"
If Condition 2 is met update the field to "-0.5"
If Condition 3 is met update the field to " 0"

The conditions are
1) TimeCharged -1 + PrevBal > 0
2) TimeCharged -1 + PrevBal = -0.5
3) TimeCharged -1 + PrevBal < -0.5
 

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

DSum in a Query 2
access equivalent of oracle query? 4
Can't Get Rid Of Quotes 1
Condition 1 OR Condition 2 3
2 Form Questions for the Group... 1
IF else criteria in query 4
Complicated Code 3
Update Query!! 4

Top