R
ryan.fitzpatrick3
I know basically how DMAX works. This is what I have so far.
LastPrice: DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl")
where in_vpbrk_effdt is the date. The date is in this format
12/12/2007, I run a query on the table then run another query off of
the first query that uses the DMAX function. Now everything works
except that the date pulled
Let's say I have three dates for one item #.
02/02/1999
05/13/2003
09/08/2007
DMAX should pull 09/08/2007 right? But on my query (with DMAX) I get
01/01/2100 date. What is the issue?
Here is the SQL if anyone needs to see it.
SELECT QryVendorPriceFreight.gl_cmp_key,
QryVendorPriceFreight.so_brnch_key, QryVendorPriceFreight.en_vend_key,
QryVendorPriceFreight.en_vend_name, QryVendorPriceFreight.in_item_key,
QryVendorPriceFreight.in_desc,
DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl") AS LastPrice
FROM QryVendorPriceFreight
GROUP BY QryVendorPriceFreight.gl_cmp_key,
QryVendorPriceFreight.so_brnch_key, QryVendorPriceFreight.en_vend_key,
QryVendorPriceFreight.en_vend_name, QryVendorPriceFreight.in_item_key,
QryVendorPriceFreight.in_desc,
DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl");
Thanks,
Ryan
LastPrice: DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl")
where in_vpbrk_effdt is the date. The date is in this format
12/12/2007, I run a query on the table then run another query off of
the first query that uses the DMAX function. Now everything works
except that the date pulled
Let's say I have three dates for one item #.
02/02/1999
05/13/2003
09/08/2007
DMAX should pull 09/08/2007 right? But on my query (with DMAX) I get
01/01/2100 date. What is the issue?
Here is the SQL if anyone needs to see it.
SELECT QryVendorPriceFreight.gl_cmp_key,
QryVendorPriceFreight.so_brnch_key, QryVendorPriceFreight.en_vend_key,
QryVendorPriceFreight.en_vend_name, QryVendorPriceFreight.in_item_key,
QryVendorPriceFreight.in_desc,
DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl") AS LastPrice
FROM QryVendorPriceFreight
GROUP BY QryVendorPriceFreight.gl_cmp_key,
QryVendorPriceFreight.so_brnch_key, QryVendorPriceFreight.en_vend_key,
QryVendorPriceFreight.en_vend_name, QryVendorPriceFreight.in_item_key,
QryVendorPriceFreight.in_desc,
DMax("[in_vpbrk_effdt]","ingres_in_vpbrk_tbl");
Thanks,
Ryan