S
Sammie
I need help to specify date criteria in a subform without using a parameter
query. The date criteria would be a fixed date that the user could change
from time to time. My desired subform criteria is
OrderDate between #1/1/08# and #1/1/2010#
I don't need to change the ending date.
This works fine as criteria on the query, but I want the user to be able to
change it, and the user can't access the query.
How can I change the date #1/1/08# from outside of the query? I would
prefer to change the date on the main form. The main form data doesn’t
contain an OrderDate field. I don’t want the user to have to change this
date every time, as they would in a parameter query. I simply cannot figure
out how to get a user-specified date into the subform query. I cannot link
it on the subform properties link master-link child because the OrderDate
doesn’t exist on the main form. My subforms link just fine just based on
ProductID. When I add a date field to the subform query to define the
beginning date, my main form either doesn’t calculate properly, or the
subform is blank, or the data becomes un-editable.
I am developing an inventory application based on the Inventory Control
template available for Access. I have merged it into my existing application
which has purchase and sales forms similar to those found in the Northwind
sample database. Inventory calculates correctly on my products form using a
purchases subform and a sales subform linked on productID. Perhaps I don't
have the user-specified beginning date field in the proper table. Right now I
have it on the Product record, on which the main form is based.
query. The date criteria would be a fixed date that the user could change
from time to time. My desired subform criteria is
OrderDate between #1/1/08# and #1/1/2010#
I don't need to change the ending date.
This works fine as criteria on the query, but I want the user to be able to
change it, and the user can't access the query.
How can I change the date #1/1/08# from outside of the query? I would
prefer to change the date on the main form. The main form data doesn’t
contain an OrderDate field. I don’t want the user to have to change this
date every time, as they would in a parameter query. I simply cannot figure
out how to get a user-specified date into the subform query. I cannot link
it on the subform properties link master-link child because the OrderDate
doesn’t exist on the main form. My subforms link just fine just based on
ProductID. When I add a date field to the subform query to define the
beginning date, my main form either doesn’t calculate properly, or the
subform is blank, or the data becomes un-editable.
I am developing an inventory application based on the Inventory Control
template available for Access. I have merged it into my existing application
which has purchase and sales forms similar to those found in the Northwind
sample database. Inventory calculates correctly on my products form using a
purchases subform and a sales subform linked on productID. Perhaps I don't
have the user-specified beginning date field in the proper table. Right now I
have it on the Product record, on which the main form is based.