I have a problem that I was hoping to get some help from. I have the expression written in Excel but I want to do the same thing in Access. The Excel Expression is as follows;
Which basically looks up one date in a column and if that date is less than the start date in another column it returns zero. If the date is equal to or greater than the start date it returns a pumping value until it reaches a stop date and then again returns a zero value. The pumping rate returned is for the month that the if statement is looking at. Can anyone help me with this? If was basically think I need to use a If-Then-Else Statement and probably a Dlookup, is that the right logic? Thanks!
Query does not have and() so you have to have iif() again then you just have to change the vlookup to dlookup([lookupfeildname],[table name],[feildname]=crit)
Or you could write a vb function put it into a module then call that in the query
hope this help
See clear as mud
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.