Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Access 2007: We have a query that performs a simple sum of two fields from two tables. But some of these fields are text and only a "X" can be entered. So, if the user enteres a negitive x (-x) we need this field to return null. Is that possible?

share|improve this question
    
This works, you can replace the x with what ever text data you are using: IIf([field1]="x" And [field2]="-x",' ','x') –  LtDan Aug 28 '12 at 20:48
    
If you found a solution, you should consider "answering" your own question when enough time has passed. –  JoshP Aug 29 '12 at 14:42

1 Answer 1

This works, you can replace the x with what ever text data you are using: IIf([field1]="x" And [field2]="-x",' ','x') – LtDan Aug 28 at 20:48

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.