View Full Version : Prompt a user in a Macro


qrk10000
01-16-2007, 07:34 AM
Hello, I have set up a Macro that automates the file import process for my users. As part of this Macro, it deletes the old file and replaces it with the new imported file. I would like to set something up that warns them before proceeding, such as "Clicking 'Yes' will delete the existing file." I have been able to set up this warning but am unable to figure out how to prompt the user to select 'Yes' or 'No'. Is there a way to do this in a Macro?

Thanks in advance for your help.

ColinEssex
01-16-2007, 08:12 AM
Create the Yes/No MessageBox in VB code then run the code in the macro.

Col

qrk10000
01-16-2007, 08:24 AM
Is this relatively simple to do? I am not very proficient in VB.

qrk10000
01-16-2007, 01:34 PM
Is there a place I could get some sample code for this?

ColinEssex
01-17-2007, 01:00 AM
Is there a place I could get some sample code for this?
I know its a surprise, but Access help has an example, plus how to do the yes/no buttons, message style and different icons.:rolleyes:

Col