PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

Automatically generate next available user ID?

 
 
=?Utf-8?B?S2F0aWU=?=
Guest
Posts: n/a
 
      25th May 2007
Hello folks-

I'm going to be trying to perform a task that I'm not sure if it's possible,
so i'm not looking for someone to write it for me, I just wanted to know if
something similar had already been written that I could get some perspective
from. Thank you in advance if you can point me to this!

I have a list of existing users (20,000+) in our application - and when new
users come in, we have to see if they already exist in the system by matching
name and 'group' - and if they do, we would assign them their existing id, if
we don't, we would assign them a new id.

The ids are generated simply by using first initial and last name, (I.E.
JSmith for John Smith) and if there is already a "jsmith" then we would
append with a 1 to make it "jsmith1" and so on. (jsmith2, jsmith3, etc.)

Does anyone know of any existing code written to perform this task that I
could user for inspiration?

Thank you!
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      25th May 2007
and what do you do with jim smith and joe smith and jill smith?

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Katie" <(E-Mail Removed)> wrote in message
news:5C5A9DFD-AAE5-41B3-A15E-(E-Mail Removed)...
> Hello folks-
>
> I'm going to be trying to perform a task that I'm not sure if it's
> possible,
> so i'm not looking for someone to write it for me, I just wanted to know
> if
> something similar had already been written that I could get some
> perspective
> from. Thank you in advance if you can point me to this!
>
> I have a list of existing users (20,000+) in our application - and when
> new
> users come in, we have to see if they already exist in the system by
> matching
> name and 'group' - and if they do, we would assign them their existing id,
> if
> we don't, we would assign them a new id.
>
> The ids are generated simply by using first initial and last name, (I.E.
> JSmith for John Smith) and if there is already a "jsmith" then we would
> append with a 1 to make it "jsmith1" and so on. (jsmith2, jsmith3, etc.)
>
> Does anyone know of any existing code written to perform this task that I
> could user for inspiration?
>
> Thank you!


 
Reply With Quote
 
=?Utf-8?B?S2F0aWU=?=
Guest
Posts: n/a
 
      25th May 2007
I'm not sure I understand your question - if you're asking what we do if we
get another duplicate, we just +1 to the number.

If you're asking where the ids go after we get the id, we have to give these
ids to other groups prior to creating the names. This is a manual process now
that takes a lot of time - but we figure there has to be a way it could be
automated.

"Don Guillett" wrote:

> and what do you do with jim smith and joe smith and jill smith?
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Katie" <(E-Mail Removed)> wrote in message
> news:5C5A9DFD-AAE5-41B3-A15E-(E-Mail Removed)...
> > Hello folks-
> >
> > I'm going to be trying to perform a task that I'm not sure if it's
> > possible,
> > so i'm not looking for someone to write it for me, I just wanted to know
> > if
> > something similar had already been written that I could get some
> > perspective
> > from. Thank you in advance if you can point me to this!
> >
> > I have a list of existing users (20,000+) in our application - and when
> > new
> > users come in, we have to see if they already exist in the system by
> > matching
> > name and 'group' - and if they do, we would assign them their existing id,
> > if
> > we don't, we would assign them a new id.
> >
> > The ids are generated simply by using first initial and last name, (I.E.
> > JSmith for John Smith) and if there is already a "jsmith" then we would
> > append with a 1 to make it "jsmith1" and so on. (jsmith2, jsmith3, etc.)
> >
> > Does anyone know of any existing code written to perform this task that I
> > could user for inspiration?
> >
> > Thank you!

>
>

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgU2lzc29u?=
Guest
Posts: n/a
 
      25th May 2007
On May 25, 9:43 am, Katie <K...@discussions.microsoft.com> wrote:
> I have a list of existing users (20,000+) in our application - and when new


What application? Excel? If so, how do you have the sheet setup?

ID, Last Name, First Name, etc?

You could add the new mnemonic and apply the Data->Filter->Autofilter to
find a duplicate.


 
Reply With Quote
 
=?Utf-8?B?S2F0aWU=?=
Guest
Posts: n/a
 
      25th May 2007
I use an excel extract from the actual application that is set up with the
column headers -
Group Id # / First Name / Last Name / User ID

I'm not sure how to use the auto-filter in an automated process for more
then 1,000 rows... What I'm looking to do is 'feed' in 400 names, have those
compared to the existing list automatically and have it spit out the new
names.. this is what I do manually now.

"David Sisson" wrote:

> On May 25, 9:43 am, Katie <K...@discussions.microsoft.com> wrote:
> > I have a list of existing users (20,000+) in our application - and when new

>
> What application? Excel? If so, how do you have the sheet setup?
>
> ID, Last Name, First Name, etc?
>
> You could add the new mnemonic and apply the Data->Filter->Autofilter to
> find a duplicate.
>
>

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgU2lzc29u?=
Guest
Posts: n/a
 
      27th May 2007
I still think that a manual auto filter will serve you well.

If your application will allow you to d/l the entire databse into Excel
(either through the clipboard, or CSV), you can filter on the USERID column
that STARTS WITH new user's ID. Any matches, including incremental userids
will be displayed.

I use the filter regularly on a list of about 5300 items and the filter
handles it with no trouble.
 
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
Failed to generate a user instance of SQL Server. Only an integratedconnection can generate a user instance. Harlan Messinger Microsoft ASP .NET 2 28th Mar 2010 07:51 PM
want to automatically generate records 4charity Microsoft Access 2 30th Jul 2009 11:52 PM
generate automatically sum Luchian Microsoft Excel Worksheet Functions 6 8th Oct 2008 05:31 PM
Automatically generate user forms =?Utf-8?B?Um9taW5hbGw=?= Microsoft Excel Programming 1 21st Mar 2006 01:18 AM
How do I automatically generate dates? =?Utf-8?B?YWx2b29uczI4?= Microsoft Excel Misc 1 24th Jun 2005 03:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 PM.