By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
you to press a button, and then they give you a free gift which is a cup
holder! - well of course it isn't, it's really just your CD Rom drive opening
Well here's how to do it in your Database!
Place this code in your Databases 'Database Script' - 'Declarations' Area.
Declare Function MciSendString Lib "winmm.dll" Alias "mciSendStringA" (Byval
lpstrCommand As String, Byval lpstrReturnString As Any, Byval uReturnLength As
Long, Byval hwndCallback As Long) As Long
And this code in the 'PostOpen' event.
retVal = MciSendString("set CDAudio door open", "", 0, 0)
Msgbox "Free cup holder anyone?"
I know I know! - its useless, worthless noone's ever going to need it! - but
ahh what the hell!