scorpio1769
Programmer
I've got a macro on an mde. database that has been working for years. all of the sudden, my user reports to me that upon execution of the macro, he gets the error message
"The function you entered cannot be used in this expression.
*You may have used a DoEvents,....."
This macro fires on the after update event of a combo box and simply creates a purchase order number according to the following.
[Forms]![Frm_InventoryOrderMaster]![DishOrDirect] & "-" & Format([Forms]![Frm_InventoryOrderMaster]![OrderMade],"mmddyy") & "/" & [Forms]![Frm_InventoryOrderMaster]![Area]
As I said, this has been working for ages and all of the sudden the user gets the error.
Secondly, this is not the first time I've seen this error before. A different user had the same error although she was not using the same function.
I've read about references and whatnot but they're using an mde.
Any help would be appreciated,
scorpio1769
"The function you entered cannot be used in this expression.
*You may have used a DoEvents,....."
This macro fires on the after update event of a combo box and simply creates a purchase order number according to the following.
[Forms]![Frm_InventoryOrderMaster]![DishOrDirect] & "-" & Format([Forms]![Frm_InventoryOrderMaster]![OrderMade],"mmddyy") & "/" & [Forms]![Frm_InventoryOrderMaster]![Area]
As I said, this has been working for ages and all of the sudden the user gets the error.
Secondly, this is not the first time I've seen this error before. A different user had the same error although she was not using the same function.
I've read about references and whatnot but they're using an mde.
Any help would be appreciated,
scorpio1769