Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 5 Aug 2008 18:49:01 -0700,    group: microsoft.public.dotnet.framework        back       


Excel databases   
I have created a database of names/addresses with a worksheet for each 
"mailing group".  Is there any way that I can check for duplicate names in 
the entire database document?  I have a feeling that I should not have split 
up the mailing groups into separate worksheets.  Thank you
date: Tue, 5 Aug 2008 18:49:01 -0700   author:   Angel's mom Angel's

Re: Excel databases   
I'll take a stab at this, since its been dormant for a while.

First, excel is not a database.  Its a spreadsheet of values and stuff.
Calling it a database will only make people upset at you.

Now, you have an excel dataStore, we'll use that term.


I would put the entire excel data into a dataset.
Google:
LoadDataSet Excel
for some examples.  They usually have the query like "Select * from $Sheet1"

.....
Then you could loop over your rows, and as you find a value, do a .Select 
and see what the count it.
Here is crappy example


foreach (string lastName in allLastNames)
{
    DataRow[] foundRows = ds.People.Select("LastName='" + lastName + "'";
        if(null!=foundRows)
{
    if(foundRows.Length > 1)
{
    //a duplicate
}
}
}


OR
http://support.microsoft.com/kb/325685

You can try to get that thing to work and then do GroupBy's on something 
like emailaddress or something like that.

.......

I don't know.  This is why excel really isn't a database.
Even a crappy database like Access has "Select Email, Count(*) as MYCount 
from People where Count(*) > 1"

Good luck.





"Angel's mom" <Angel's mom@discussions.microsoft.com> wrote in message 
news:7958E9C5-6AE2-48CE-A5F9-798D7B04C7A1@microsoft.com...
>I have created a database of names/addresses with a worksheet for each
> "mailing group".  Is there any way that I can check for duplicate names in
> the entire database document?  I have a feeling that I should not have 
> split
> up the mailing groups into separate worksheets.  Thank you
date: Mon, 11 Aug 2008 10:45:12 -0400   author:   sloan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us