Problems with a IIF, thanks

  • Thread starter Thread starter pgarcia
  • Start date Start date
P

pgarcia

My query BAXSaver Canada has 4224 line of data. I'm trying to creat another
query change changes my 4 to 3, but I'm getting back fewer lines (3734). Why?

IIf([BAXSaver Canada]![Field3]=4,3,[BAXSaver Canada]![Field3])
 
Seems like you may have some records that Field3 is null. Check and see.
 
Sorry, the field is full of data.

KARL DEWEY said:
Seems like you may have some records that Field3 is null. Check and see.
--
KARL DEWEY
Build a little - Test a little


pgarcia said:
My query BAXSaver Canada has 4224 line of data. I'm trying to creat another
query change changes my 4 to 3, but I'm getting back fewer lines (3734). Why?

IIf([BAXSaver Canada]![Field3]=4,3,[BAXSaver Canada]![Field3])
 
Would you care to share the SQL view of your query?

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 
Ok, I was doing the expression within the field. When I put it in an empty
field, it worked. Why is that?

And, do you know VB for Access?

John Spencer said:
Would you care to share the SQL view of your query?

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'====================================================

My query BAXSaver Canada has 4224 line of data. I'm trying to creat another
query change changes my 4 to 3, but I'm getting back fewer lines (3734). Why?

IIf([BAXSaver Canada]![Field3]=4,3,[BAXSaver Canada]![Field3])
 

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

Back
Top