Non alcoholic VBA (1 Viewer)

skeeter23

$HASP OK
Local time
Today, 11:45
Joined
Apr 26, 2011
Messages
19
DoCmd.MixMeAdrink acDrink "Jack & Coke",True

Keeps returning an error of "Invalid Outside Procedure" :mad:

Damn I thought VBA could do anything. I guess not :rolleyes:
 

Beetle

Duly Registered Boozer
Local time
Today, 10:45
Joined
Apr 30, 2011
Messages
1,808
You're going about this completely the wrong way. You need an append query;

Dim PourMeADrink As string

PourMeADrink = "Insert Into Glass(Right, Now) Select Whiskey, Coke From Bottle Where Whiskey = 'Jack Daniels';"

CurrentDb.Execute PourMeADrink, dbPourMeAnotherOnError

:)
 

skeeter23

$HASP OK
Local time
Today, 11:45
Joined
Apr 26, 2011
Messages
19
Good point. I like your solution.

It probably also needs to be within the construct of an if else statement as well for supply outages :D
 

Thales750

Formerly Jsanders
Local time
Today, 12:45
Joined
Dec 20, 2007
Messages
2,150
Good point. I like your solution.

It probably also needs to be within the construct of an if else statement as well for supply outages :D

Not to mention,

If Blood Alcohol => .08% then

If Must Drive =True then
Go to Sleep
End If
End If
Exit Sub
Sleep:
Lie Down Now 'Hopefully with one of the pretties at the party that
' are like wise =>.08%
 

Users who are viewing this thread

Top Bottom