PC Review


Reply
Thread Tools Rate Thread

Choosing what information to filter from SQL in VBA

 
 
=?Utf-8?B?c2N1YmFkaXZlcg==?=
Guest
Posts: n/a
 
      1st Nov 2007

Hello,

I have recorded a macro that connects to the SQL warehouse for a specific
ClientID.

Is it possible to alter the VBA so that I can choose what ClientID I want to
retrieve? I was thinking of using an input box
 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      1st Nov 2007
On Nov 1, 9:07 am, scubadiver <scubadi...@discussions.microsoft.com>
wrote:
> Hello,
>
> I have recorded a macro that connects to the SQL warehouse for a specific
> ClientID.
>
> Is it possible to alter the VBA so that I can choose what ClientID I want to
> retrieve? I was thinking of using an input box


Hi
A bit vague
Is the ClientID a text string, a number...
Is the ClientID on a worksheet, in a database, a parameter in another
sub, part of an SQL string...

At the moment, the answer to your question is "yes, probably"
regards
Paul

 
Reply With Quote
 
=?Utf-8?B?c2N1YmFkaXZlcg==?=
Guest
Posts: n/a
 
      1st Nov 2007

ClientID is a text string in an SQL server table.

Here is the SELECT statement from the VBA


"SELECT Account.AccountID, Account.ClientID, Account.Forename,
Account.Surname, Account.Address1, Account.PostCode, Account.DateOfBirth,
Account.AccountStatus FROM Warehouse.dbo.Account WHERE
Account.ClientID='FTC001'"



"(E-Mail Removed)" wrote:

> On Nov 1, 9:07 am, scubadiver <scubadi...@discussions.microsoft.com>
> wrote:
> > Hello,
> >
> > I have recorded a macro that connects to the SQL warehouse for a specific
> > ClientID.
> >
> > Is it possible to alter the VBA so that I can choose what ClientID I want to
> > retrieve? I was thinking of using an input box

>
> Hi
> A bit vague
> Is the ClientID a text string, a number...
> Is the ClientID on a worksheet, in a database, a parameter in another
> sub, part of an SQL string...
>
> At the moment, the answer to your question is "yes, probably"
> regards
> Paul
>
>

 
Reply With Quote
 
=?Utf-8?B?c2N1YmFkaXZlcg==?=
Guest
Posts: n/a
 
      1st Nov 2007

Ive done it.



"(E-Mail Removed)" wrote:

> On Nov 1, 9:07 am, scubadiver <scubadi...@discussions.microsoft.com>
> wrote:
> > Hello,
> >
> > I have recorded a macro that connects to the SQL warehouse for a specific
> > ClientID.
> >
> > Is it possible to alter the VBA so that I can choose what ClientID I want to
> > retrieve? I was thinking of using an input box

>
> Hi
> A bit vague
> Is the ClientID a text string, a number...
> Is the ClientID on a worksheet, in a database, a parameter in another
> sub, part of an SQL string...
>
> At the moment, the answer to your question is "yes, probably"
> regards
> Paul
>
>

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: choosing size of anti-glare filter for a Dell XPS one and Dell ST2420L 24" W Full HD Monitor Joel Computer Hardware 6 2nd May 2011 11:20 PM
Re: choosing size of anti-glare filter for a Dell XPS one and DellST2420L 24" W Full HD Monitor Paul Computer Hardware 4 6th Apr 2011 02:59 PM
Re: choosing size of anti-glare filter for a Dell XPS one and Dell ST2420L 24" W Full HD Monitor VanguardLH Computer Hardware 0 2nd Apr 2011 10:08 AM
information filter scott Microsoft Excel Misc 3 25th Aug 2008 11:34 PM
Choosing Certain Information for forms =?Utf-8?B?ZW1j?= Microsoft Access Forms 3 13th Mar 2006 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 PM.