[mso] Re: A query.

What you would want to look into/learn is how to handle ADO. This is a data
wrapper that fairly easily connects to data sources and then lets you write
SQL queries through script to create virtual RecordSets. From there, you can
pull out whatever you need and dump it wherever you need (using VBA or VBS)
into whatever app you want, i.e., Word, Excel, Web page.

You can use ADO to connect to an Access or SQL DB (which I do all the time
from Word) or you can also connect to an Excel data source (their version of
a DB). 

I have a sample of this, if you're interested, here:

http://www.mousetrax.com/techpage.html#autoforms

Scroll down to the # 5 article in the PLEASE FILL OUT THIS FORM series. Read
the article, download the sample Word form/Access DB and open/study the
code.

If you want to get into this...here's a great book to get you up to speed,
quickly: http://www.mousetrax.com/books.html#ado

The alternative is to use (Web) Pages in Access. 

One last alternative, which is harder to refine, would be to use a Word mail
merge from your data source. And even though it says MAIL merge...it doesn't
have to be. You can just merge data into respective fields in a Word doc or
label format to get a printout of what you want. No one says you MUST
create/mail a letter/labels with that format. So you can merge the info into
a printable doc for basic data retrieval.

Hope that helps...


Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified, Editor/TechTrax

Free MS Tutorials: http://www.mousetrax.com/techtrax
Free Word eBook: http://www.mousetrax.com/books.html 
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html 


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Jens Outzen
Sent: Friday, November 25, 2005 3:52 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] A query.





Been too quiet.

Imagine that you have a list with multiple entries.
(Account problem)
You have a name/company (actually 15000) that may have several different
types of account against them. Each name will have an address, telephone
number, contact, account handler etc etc.
If you imagine a bank and all their accounts.

If all this was entered into an Excel spreadsheet (what is the maximum you
can enter into a spreadsheet by the way ?)
What would be the easiest way to extract information (I was thinking of
just using the filters or using pivot tables) ?
My experience with Access is limited (when I used it had a tendency to fall
over - mind you, that was quite a while ago) and i would be more inclined
to using SQL. I can do that but I need to make this "idiot-proof" and one
thing that I haven't got experience with is marrying SQL with a query box
(Excel) or to a bespoke query box (as in one you would find on a webpage) I
have always written "straight language queries", but I assume that a macro
could solve that.

I believe that I can get there but if anyone has a good idea - or two - I
would be happy to incorporate those in my work.

In advance thanks for your time and efforts.


Jens N. Outzen
Senior Commercial Analyst
Paddington Station
0207 298 7300 ext 243
07921 942 559 (Mob)



**********************************************************************
This message is confidential. It may not be disclosed to, or used by, 
anyone other than the addressee. If you receive this message in 
error, please advise us immediately.

Internet email is not necessarily secure. First does not accept
responsibility for changes to any email which occur after the email
has been sent. Attachments to this email could contain software
viruses which could damage your system. First have checked the
attachments for viruses before sending, but you should virus-check
them before opening.

For more information on our range of services or to book your tickets
online, please visit:- http://www.firstgroup.com
**********************************************************************

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: