Search the web
Sign In
New User? Sign Up
MS_Access_Professionals · MS Access Professionals
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Stupis macro thingy, Whats more efficient, macro or pure sql code? a   Message List  
Reply | Forward Message #68922 of 76979 |
Re: Stupis macro thingy, Whats more efficient, macro or pure sql code? and also is

The only thing my eyes aren't very is "good".

I dated a girl once whose eyes *did* very...I mean vary. They changed
from green to hazel depending on what color she was wearing.

Bill

--- In MS_Access_Professionals@yahoogroups.com, "buffalome90210"
<buffalome90210@...> wrote:
>
>
> But what if my eyes aren't "very" ?
>
>
> Bad joke
>
> Terence
>
> --- In MS_Access_Professionals@yahoogroups.com, "Bill Mosca"
> <wrmosca@> wrote:
> >
> > Terence
> >
> > You can see the SQL for any query. Open the query in design view.
> > Click on View>SQL View. Presto! the complete SQL syntax is right
> > before your very eyes.
> >
> > Bill
> >
> > --- In MS_Access_Professionals@yahoogroups.com, "buffalome90210"
> > <buffalome90210@> wrote:
> > >
> > >
> > > Well yes it helps and no,
> > >
> > > I guess the real answer ( for me any way) is stay away from
> > > macros...I really prefer to know exACTL;Y WHAT THE CODE IS
DOING,
> > AND
> > > WRITINMG A AMCRO AND INCLUDING THEM IS JUST ANOTHER
HOUSEKEEPING
> > > PLACE TO LOOK FOR STUFF AND A SOURCE TO FORGET ONE MORE THING.
> > >
> > > Regarding converting from a macro to sql, I guess what i was
hoping
> > > for was something like, example, I have a texbox attached to a
> > query,
> > > I can go to the row source, open the querry, and right click to
see
> > > the actual sql. Thats What i was hoping for.
> > >
> > > But ty very very much.
> > >
> > > :)
> > > terence
> > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas"
> > > <JohnV@> wrote:
> > > >
> > > > Terence-
> > > >
> > > > SQL <> Macros
> > > >
> > > > You can certainly execute an SQL query from a macro just like
you
> > > can in
> > > > VBA. Think of Macros as "shorthand VBA." There are lots of
> > > limitations -
> > > > it's hard to work with variables, and loops are very
difficult to
> > > build.
> > > > A2007 has lots of enhancements to macros - introducing
variables
> > > and error
> > > > trapping. In all versions of Access, you can "convert" a
macro
> > to
> > > VBA, but
> > > > not vice-versa.
> > > >
> > > > Does that help?
> > > >
> > > > John Viescas, author
> > > > Microsoft Office Access 2007 Inside Out
> > > > Building Microsoft Access Applications
> > > > Microsoft Office Access 2003 Inside Out
> > > > SQL Queries for Mere Mortals
> > > > http://www.viescas.com/
> > > > (Paris, France)
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: MS_Access_Professionals@yahoogroups.com
> > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of
> > > buffalome90210
> > > > Sent: Monday, January 12, 2009 12:55 PM
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > Subject: [MS_AccessPros] Stupis macro thingy, Whats more
> > efficient,
> > > macro or
> > > > pure sql code? and also is
> > > >
> > > > I hate myself when I use that macro crap on a form control. I
> > just
> > > feel
> > > > like such looser when I use these automation things as
opposed to
> > > good
> > > > old pure SQL.
> > > >
> > > > BUT, none the less, I get caught up in using them, and they
> > usually
> > > > come back to haunt me somehwre down the line. The question ,
what
> > > are
> > > > the Pro's and Cons of using a Macro vs writing SQL to do the
same.
> > > >
> > > > ALSO, is there a way to display the generated SQL from a
macro ?
> > > >
> > > > TY
> > > > Terence
> > > >
> > > >
> > > > ------------------------------------
> > > >
> > > > Yahoo! Groups Links
> > > >
> > >
> >
>





Mon Jan 12, 2009 4:38 pm

wrmosca
Offline Offline
Send Email Send Email

Forward
Message #68922 of 76979 |
Expand Messages Author Sort by Date

I hate myself when I use that macro crap on a form control. I just feel like such looser when I use these automation things as opposed to good old pure SQL. ...
buffalome90210
Offline Send Email
Jan 12, 2009
11:55 am

Terence- SQL <> Macros You can certainly execute an SQL query from a macro just like you can in VBA. Think of Macros as "shorthand VBA." There are lots of...
John Viescas
jlviescas
Offline Send Email
Jan 12, 2009
12:06 pm

Well yes it helps and no, I guess the real answer ( for me any way) is stay away from macros...I really prefer to know exACTL;Y WHAT THE CODE IS DOING, AND ...
buffalome90210
Offline Send Email
Jan 12, 2009
1:26 pm

Terence You can see the SQL for any query. Open the query in design view. Click on View>SQL View. Presto! the complete SQL syntax is right before your very...
Bill Mosca
wrmosca
Offline Send Email
Jan 12, 2009
3:31 pm

But what if my eyes aren't "very" ? Bad joke Terence...
buffalome90210
Offline Send Email
Jan 12, 2009
3:54 pm

The only thing my eyes aren't very is "good". I dated a girl once whose eyes *did* very...I mean vary. They changed from green to hazel depending on what color...
Bill Mosca
wrmosca
Offline Send Email
Jan 12, 2009
4:38 pm

Terence- You can do that with a macro, too. If you have a macro name in the event property of a form or control, select the event property and then click the ...
John Viescas
jlviescas
Offline Send Email
Jan 12, 2009
1:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help