I have a form which I am using
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
which does a good job of refreshing/updating everything on the form. Once that is done, my intent was to either open a form, or have a pop-up that informed the user that they needed more money before they could print. I am using an If statement to determine if we print or not, and it worked just fine until I added the line for refreshing/updating. Since both things have to happen based on a single click of a button, and the refresh needs to happen prior to printing the info, I can't make two buttons. Seems like this should work, but for some reason it doesn't. Any thoughts?
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
which does a good job of refreshing/updating everything on the form. Once that is done, my intent was to either open a form, or have a pop-up that informed the user that they needed more money before they could print. I am using an If statement to determine if we print or not, and it worked just fine until I added the line for refreshing/updating. Since both things have to happen based on a single click of a button, and the refresh needs to happen prior to printing the info, I can't make two buttons. Seems like this should work, but for some reason it doesn't. Any thoughts?