S
Stapes
Hi
I have a routine in that runs when my menu loads that checks if there
are any orders due for delivery today. It invites the user to process
them now. If yes, it opens the Order form to display these records,
using a global variable to tell the order form to filter for Orders
due for delivery today.
This is performed by the following bit of code:
If global_orders_due_today = True Then
Me.TxtCurrentView = "DELIVERY DUE"
global_orders_due_today = False
Call disable_buttons
Me.Filter = "([DeliverOnDate]<=#" & formatted_date &
"#) and ([DeliveryNote]=False)"
Me.FilterOn = True
Me.DataEntry = False
Me.AllowAdditions = False
DoCmd.ApplyFilter , "([DeliverOnDate]=#" &
formatted_date & "#) and ([DeliveryNote]=False)"
It does not work in Access 2007 - it displays all the records.
How can I get it working?
Stapes
I have a routine in that runs when my menu loads that checks if there
are any orders due for delivery today. It invites the user to process
them now. If yes, it opens the Order form to display these records,
using a global variable to tell the order form to filter for Orders
due for delivery today.
This is performed by the following bit of code:
If global_orders_due_today = True Then
Me.TxtCurrentView = "DELIVERY DUE"
global_orders_due_today = False
Call disable_buttons
Me.Filter = "([DeliverOnDate]<=#" & formatted_date &
"#) and ([DeliveryNote]=False)"
Me.FilterOn = True
Me.DataEntry = False
Me.AllowAdditions = False
DoCmd.ApplyFilter , "([DeliverOnDate]=#" &
formatted_date & "#) and ([DeliveryNote]=False)"
It does not work in Access 2007 - it displays all the records.
How can I get it working?
Stapes