When I checked in my "InvDate" field in the "Inv" table, Access stored it as 39923 (serial date) which is supposed to be "April 29th, 2009". So I wonder why it returns 0 (December 30th, 1899) when I call that function. Maybe there is something wrong with my codes?
I still want to use "dd/mm/yy" format and I want my program to recognize "20/04/09" as "April 20th 2009".
Now I use this trick:
1. First, I make a query ("QInvDate") that contains ProductID, InvDate, and Price from Tables "Inv" and "InvSub"
2. Then I call the date with this:
=DMax("InvDate";"QInvDate";"ProductID= '" & [ProductID] & "' AND Price= " & DMax("Price";"InvSub";"ProductID= '" & [ProductID] & "'"))
This trick works but I still wonder if it is possible to use the function method.
I still want to use "dd/mm/yy" format and I want my program to recognize "20/04/09" as "April 20th 2009".
Now I use this trick:
1. First, I make a query ("QInvDate") that contains ProductID, InvDate, and Price from Tables "Inv" and "InvSub"
2. Then I call the date with this:
=DMax("InvDate";"QInvDate";"ProductID= '" & [ProductID] & "' AND Price= " & DMax("Price";"InvSub";"ProductID= '" & [ProductID] & "'"))
This trick works but I still wonder if it is possible to use the function method.