Well it's not simple as it sounds. After a lot of banging my head on a wall, i have been able to deduct that
For a PC with a sound card and no speakers, docmd.beep or the beep API function goes thru the sound card and gets lost (there is no sound as there are no speakers) whereas DOS uses the PC speaker.
So, right now there doesn't seem to be any solution to it.