I was fortunate enough to have Hans help me with a Me.Dirty issue yesterday (post 238190), and discovered several other applications for this code. It seems it is just good programming to consider this whenever using this kind of cmdbutton. A (similar?) issue I have discovered is a cmdbutton on a continuous form (“Refresh Display”). This is nothing more than a cmdbutton calling a requery machro. The form (frmLoadBoard) has this “Refresh” cmdbutton because if a new order is entered (frmOrderNew), it is not displayed in frmLoadBoard until it is requeried. This creates a rather precarious condition in that the operator has no way of knowing if there is a new order available for shipment unless he (randomly) clicks the “Refresh” button. I had thought that one might consider a timed event to trigger a requery, but things change so quickly in this environment that the new order update really needs to be instant. Might there be some way to have the frmOrderNew (on close event?) requery the frmLoadBoard? My hope would be to requery the frmLoadBoard when the frmOrderNew is completed (closed).
tblMaster > frmOrderNew
tblMaster > qfltLoadBoard > frmLoadBoard
Being relatively new to VBA, I become easily confused (come to think of it, that condition is not limited to VBA). As always, any assistance greatly appreciated.
Edit: I don’t know that it’s relevent, but the frmOrderNew is called from a cmdbutton on the frmLoadBoard as well as the switchboard.