skeeter23 $HASP OK Local time Yesterday, 21:38 Joined Apr 26, 2011 Messages 19 May 7, 2011 #1 DoCmd.MixMeAdrink acDrink "Jack & Coke",True Keeps returning an error of "Invalid Outside Procedure" Damn I thought VBA could do anything. I guess not
DoCmd.MixMeAdrink acDrink "Jack & Coke",True Keeps returning an error of "Invalid Outside Procedure" Damn I thought VBA could do anything. I guess not
B Beetle Duly Registered Boozer Local time Yesterday, 20:38 Joined Apr 30, 2011 Messages 1,807 May 8, 2011 #2 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
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 Yesterday, 21:38 Joined Apr 26, 2011 Messages 19 May 8, 2011 #3 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
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
T Thales750 Formerly Jsanders Local time Yesterday, 22:38 Joined Dec 20, 2007 Messages 3,583 May 9, 2011 #4 skeeter23 said: 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 Click to expand... 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%
skeeter23 said: 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 Click to expand... 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%