B
Brad
Thanks for taking the time to read my question.
I am having problems with a query.
The query works on my computer (Regional Setting for Date
are dd-MMM-yyyy) but not on another computer (Regional
Settings for Date are M/d/yyyy)
I have changed the query to reflect this difference.
The Exchange Rate Start Date is 1/1/2001
There is no Exchange Rate End date
The Effective Date used on the form are
7/1/2004 - Works
and
7/2/2004 - Does not work
On my computer the query is:
SELECT tblExchangeRate.ExchangeRate,
tblExchangeRate.StartDate, Format(IIf(IsNull
([tblExchangeRate]![EndDate]),Now(),[tblExchangeRate]!
[EndDate]),"dd-mmm-yyyy") AS TheEndDate
FROM tblExchangeRate
WHERE (((tblExchangeRate.StartDate)<=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate])
AND ((Format(IIf(IsNull([tblExchangeRate]![EndDate]),Now
(),[tblExchangeRate]![EndDate]),"dd-mmm-yyyy"))>=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate]));
and both dates work
On the other computer the query is:
SELECT tblExchangeRate.ExchangeRate,
tblExchangeRate.StartDate, Format(IIf(IsNull
([tblExchangeRate]![EndDate]),Now(),[tblExchangeRate]!
[EndDate]),"dd-mmm-yyyy") AS TheEndDate
FROM tblExchangeRate
WHERE (((tblExchangeRate.StartDate)<=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate])
AND ((Format(IIf(IsNull([tblExchangeRate]![EndDate]),Now
(),[tblExchangeRate]![EndDate]),"m/d/yyyy"))>=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate]));
only 7/1/2004 works
I can't get the "m" in the second query to stay uppercase
("M"), it always changes back to "m".
The strange part is that if you enter a date on the form
of 7/1/2004 the query works, but if you enter a date of
7/2/2004 or later, the query doesn't work.
Any ideas?
Thanks so much.
I'll check back often if anyone has questions.
Brad
I am having problems with a query.
The query works on my computer (Regional Setting for Date
are dd-MMM-yyyy) but not on another computer (Regional
Settings for Date are M/d/yyyy)
I have changed the query to reflect this difference.
The Exchange Rate Start Date is 1/1/2001
There is no Exchange Rate End date
The Effective Date used on the form are
7/1/2004 - Works
and
7/2/2004 - Does not work
On my computer the query is:
SELECT tblExchangeRate.ExchangeRate,
tblExchangeRate.StartDate, Format(IIf(IsNull
([tblExchangeRate]![EndDate]),Now(),[tblExchangeRate]!
[EndDate]),"dd-mmm-yyyy") AS TheEndDate
FROM tblExchangeRate
WHERE (((tblExchangeRate.StartDate)<=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate])
AND ((Format(IIf(IsNull([tblExchangeRate]![EndDate]),Now
(),[tblExchangeRate]![EndDate]),"dd-mmm-yyyy"))>=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate]));
and both dates work
On the other computer the query is:
SELECT tblExchangeRate.ExchangeRate,
tblExchangeRate.StartDate, Format(IIf(IsNull
([tblExchangeRate]![EndDate]),Now(),[tblExchangeRate]!
[EndDate]),"dd-mmm-yyyy") AS TheEndDate
FROM tblExchangeRate
WHERE (((tblExchangeRate.StartDate)<=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate])
AND ((Format(IIf(IsNull([tblExchangeRate]![EndDate]),Now
(),[tblExchangeRate]![EndDate]),"m/d/yyyy"))>=[Forms]!
[frmtblPricingIngredients]![PricingIngredEffectiveDate]));
only 7/1/2004 works
I can't get the "m" in the second query to stay uppercase
("M"), it always changes back to "m".
The strange part is that if you enter a date on the form
of 7/1/2004 the query works, but if you enter a date of
7/2/2004 or later, the query doesn't work.
Any ideas?
Thanks so much.
I'll check back often if anyone has questions.
Brad