PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Setup Re: How to activate the Query parameters toolbar

Reply

Re: How to activate the Query parameters toolbar

 
Thread Tools Rate Thread
Old 29-06-2003, 03:27 AM   #1
Kim Mitchell
Guest
 
Posts: n/a
Default Re: How to activate the Query parameters toolbar


I had the same problem. My solution was to run the query with starting and
ending dates. I then replaced the dates with variables. Unfortunately, the
query often broke accross the dates so that I had to re-query doing things
in a different order. Remember, the Select statement is a string. You need
to add quotes when you are separating out the dates as variables. HTH

Kim

"Alvaro Montoya" <amontoya@sawtek.com> wrote in message
news:0f4c01c33ce1$8d6a2dc0$a301280a@phx.gbl...
> I'm writing a macro for retreiving data from a database.
> But I want the query to be limited by a starting date and
> an end date wich are typed in two different cells.
> Excel's Help tells I can do it by using the Query
> Parameters option of the External Data toolbar, but this
> option is deactivated and I can't make it active.
> If I can do this, I'll ask the VBA editor to record the
> macro and it will be done. If anybody can tell me how to
> do it by code, it will fine also.
>
> Thank you guys, wherever you are.
>
> Regards from Costa Rica, land of beaches, sun and girls.
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off