Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,790| Members 17,820, Newest waheguruhelpme| Online 201
Home Contact
 (Forgotten?): 
    A portrait by Bhagat Singh of Sikhiart.com

   
                                                                     Your Banner Here!    

Mailing List without duplication

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Get "#ERROR" on labels on mailing list. Why? vikenk@aol.com Information Technology 5 28-Jul-2006 08:13 AM
mailing list Roger Information Technology 3 28-Jul-2006 08:03 AM
Sorry meant Rnd number duplication RioDeSmoke Information Technology 1 19-Nov-2005 22:00 PM
creating mailing labels JON, mcse, mcdba Information Technology 2 13-Nov-2005 17:33 PM
Duplication Query Dz0n& Information Technology 1 12-Nov-2005 22:39 PM


Tags
mailing, list, without, duplication
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:30 AM
huzefahashim@gmail.com's Avatar huzefahashim@gmail.com
Guest
 
Posts: n/a
   
   
Mailing List without duplication

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi,
I would like to create a mailing list where there are no duplicates. It
should check while the user is entering data if any previous records
exist with the same data.

For example, if there is a John Smith residing at 123 Oldsville Road,
Somewhere, SM with phone number 12345, as soon as the user enters John
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12662-mailing-list-without-duplication.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662
in the 'First Name' Access should pop up all records matching first
name John. When the user enters Smith, all records with John Smith
should show up. Same record searching for phone number, address fields
etc. The user does not need to necessarily enter data in a certain
order. If he enters only the phone number, it should show up all
records with that phone number.

I hope I haven't left any confusion.

Thanks,
Zef.




 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:31 AM
Sheila D's Avatar Sheila D
Guest
 
Posts: n/a
   
   
RE: Mailing List without duplication

I think you might find that rather cumbersome, it may be better to set up a
search facility so that the user can check before they start the input. You
can also set up a Find duplicates query so that you can do 'house keeping '
at regular intervals

SHeila
www.c-i-m-s.com
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662

"huzefahashim@gmail.com" wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662

> Hi,
> I would like to create a mailing list where there are no duplicates. It
> should check while the user is entering data if any previous records
> exist with the same data.
>
> For example, if there is a John Smith residing at 123 Oldsville Road,
> Somewhere, SM with phone number 12345, as soon as the user enters John
> in the 'First Name' Access should pop up all records matching first
> name John. When the user enters Smith, all records with John Smith
> should show up. Same record searching for phone number, address fields
> etc. The user does not need to necessarily enter data in a certain
> order. If he enters only the phone number, it should show up all
> records with that phone number.
>
> I hope I haven't left any confusion.
>
> Thanks,
> Zef.
>
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:31 AM
Wayne-I-M's Avatar Wayne-I-M
Guest
 
Posts: n/a
   
   
RE: Mailing List without duplication

Hi Zef

It's still 10 mins to lunch so try this stuff. LoL ;-)

I like that question – made me think (just a bit). This code has not been
tested but (hopefully) it should be OK and am sitting here waiting for lunch

Note it's not been tested but it "should" be OK but may need jigging about
with.

Note that if the name that you want “is” on the list the focus will be set
to the [1stname] text box of that record – if that’s where you want the user
to be when the form open – if not you can change it.

Note you need to have column 1 of the combo set to show the [ClientID], then
[Surname], then [firstname[, [etc] and whatever other stuff you need.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662


Set this on on the Not On List option of your combo ( [ComboSurnameSearch]
)


Private Sub ComboSurnameSearch_NotInList(NewData As String, Response As
Integer)
Dim Db As DAO.Database
Dim rs As DAO.Recordset
Dim Msg As String

Msg = "'" & NewData & "' is not on in the data base." & vbCr & vbCr
Msg = Msg & "Do you want to add New Record?"
If MsgBox(Msg, vbQuestion + vbYesNo) = vbNo Then
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662
Response = acDataErrContinue
MsgBox "Have another go."
Else
Set Db = CurrentDb
Set rs = Db.OpenRecordset("tblClients", dbOpenDynaset)

rs.AddNew
rs![Surname] = NewData
rs.Update
Response = acDataErrAdded

Me.ButtonNewRecordConfirm.Visible = True

End If

End Sub



On the after-update option add this

Private Sub ComboSurnameSearch_AfterUpdate()
If Me.ComboSurnameSearch = "Add" Then
DoCmd.GoToRecord , , acNewRec
CD1stName.SetFocus
Else

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ClientIDField] = " & Str(Me![ComboSurnameSearch])
Me.Bookmark = rs.Bookmark

Me.SubBookings.SetFocus
End If

Me.ComboSurnameSearch = ""

End Sub


Add a new button to your page set the visible (on-load to “False”) to
confirm that the user wants to add the new record. The not on list option
will display it until the new record is created – you can change this to
“true” but why bother as in this case simply don’t code the “visible” bit –
just set the button on the form and leave it. BUT it will always be there
and forms should be as empty as possible until the control is needed (well
that’s my ideas anyway).
As you can see I have set this to close the main form and then reopen it as
I am still having problems with my server (it’s crap and dead old) but if you
work for a company that isn’t so mean you could simply requery the form.

As you can see from the
DoCmd.GoToRecord , , acLast
This will also reopen the main form onto the new record that you have just
created.


Set this to the on-click of the new button


Private Sub ButtonNewRecordConfirm_Click()
On Error GoTo Err_ButtonNewRecordConfirm_Click


DoCmd.Close
DoCmd.OpenForm "MainFormName", acNormal
DoCmd.GoToRecord , , acLast


Exit_ButtonNewRecordConfirm_Click:
Exit Sub

Err_ButtonNewRecordConfirm_Click:
MsgBox Err.Description
Resume Exit_ButtonNewRecordConfirm_Click

End Sub



Hope this helps - I'm off to lunch

And "Yes" I know I have done what you’re not meant to by simply adding the
word “add” but couldn’t think of anything else and a bit lazy (and hungry)
today.

--
Wayne
Manchester, England.




"huzefahashim@gmail.com" wrote:

> Hi,
> I would like to create a mailing list where there are no duplicates. It
> should check while the user is entering data if any previous records
> exist with the same data.
>
> For example, if there is a John Smith residing at 123 Oldsville Road,
> Somewhere, SM with phone number 12345, as soon as the user enters John
> in the 'First Name' Access should pop up all records matching first
> name John. When the user enters Smith, all records with John Smith
> should show up. Same record searching for phone number, address fields
> etc. The user does not need to necessarily enter data in a certain
> order. If he enters only the phone number, it should show up all
> records with that phone number.
>
> I hope I haven't left any confusion.
>
> Thanks,
> Zef.
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:33 AM
huzefahashim@gmail.com's Avatar huzefahashim@gmail.com
Guest
 
Posts: n/a
   
   
Re: Mailing List without duplication

  Donate Today!  
Hi Wayne

Thanks for your quick update. Even if it meant delaying your lunch!
Going through your code, made me realize MS Access is definetely not
meant for what I want to do. I think I'll try looking online to see if
I can find softwares especially made for that purpose. My company
doesn't care how I do it. As long as it gets done!

Thanks anyways,
Zef

Wayne-I-M wrote:
> Hi Zef
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662
>
> It's still 10 mins to lunch so try this stuff. LoL ;-)
>
> I like that question - made me think (just a bit). This code has not been
> tested but (hopefully) it should be OK and am sitting here waiting for lunch
>
> Note it's not been tested but it "should" be OK but may need jigging about
> with.
>
> Note that if the name that you want "is" on the list the focus will be set
> to the [1stname] text box of that record - if that's where you want the user
> to be when the form open - if not you can change it.
>
> Note you need to have column 1 of the combo set to show the [ClientID], then
> [Surname], then [firstname[, [etc] and whatever other stuff you need.
>
>
> Set this on on the Not On List option of your combo ( [ComboSurnameSearch]
> )
>
>
> Private Sub ComboSurnameSearch_NotInList(NewData As String, Response As
> Integer)
> Dim Db As DAO.Database
> Dim rs As DAO.Recordset
> Dim Msg As String
>
> Msg = "'" & NewData & "' is not on in the data base." & vbCr & vbCr
> Msg = Msg & "Do you want to add New Record?"
> If MsgBox(Msg, vbQuestion + vbYesNo) = vbNo Then
> Response = acDataErrContinue
> MsgBox "Have another go."
> Else
> Set Db = CurrentDb
> Set rs = Db.OpenRecordset("tblClients", dbOpenDynaset)
>
> rs.AddNew
> rs![Surname] = NewData
> rs.Update
> Response = acDataErrAdded
>
> Me.ButtonNewRecordConfirm.Visible = True
>
> End If
>
> End Sub
>
>
>
> On the after-update option add this
>
> Private Sub ComboSurnameSearch_AfterUpdate()
> If Me.ComboSurnameSearch = "Add" Then
> DoCmd.GoToRecord , , acNewRec
> CD1stName.SetFocus
> Else
>
> Dim rs As Object
> Set rs = Me.Recordset.Clone
> rs.FindFirst "[ClientIDField] = " & Str(Me![ComboSurnameSearch])
> Me.Bookmark = rs.Bookmark
>
> Me.SubBookings.SetFocus
> End If
>
> Me.ComboSurnameSearch = ""
>
> End Sub
>
>
> Add a new button to your page set the visible (on-load to "False") to
> confirm that the user wants to add the new record. The not on list option
> will display it until the new record is created - you can change this to
> "true" but why bother as in this case simply don't code the "visible" bit -
> just set the button on the form and leave it. BUT it will always be there
> and forms should be as empty as possible until the control is needed (well
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12662
> that's my ideas anyway).
> As you can see I have set this to close the main form and then reopen it as
> I am still having problems with my server (it's crap and dead old) but if you
> work for a company that isn't so mean you could simply requery the form.
>
> As you can see from the
> DoCmd.GoToRecord , , acLast
> This will also reopen the main form onto the new record that you have just
> created.
>
>
> Set this to the on-click of the new button
>
>
> Private Sub ButtonNewRecordConfirm_Click()
> On Error GoTo Err_ButtonNewRecordConfirm_Click
>
>
> DoCmd.Close
> DoCmd.OpenForm "MainFormName", acNormal
> DoCmd.GoToRecord , , acLast
>
>
> Exit_ButtonNewRecordConfirm_Click:
> Exit Sub
>
> Err_ButtonNewRecordConfirm_Click:
> MsgBox Err.Description
> Resume Exit_ButtonNewRecordConfirm_Click
>
> End Sub
>
>
>
> Hope this helps - I'm off to lunch
>
> And "Yes" I know I have done what you're not meant to by simply adding the
> word "add" but couldn't think of anything else and a bit lazy (and hungry)
> today.
>
> --
> Wayne
> Manchester, England.
>
>
>
>
> "huzefahashim@gmail.com" wrote:
>
> > Hi,
> > I would like to create a mailing list where there are no duplicates. It
> > should check while the user is entering data if any previous records
> > exist with the same data.
> >
> > For example, if there is a John Smith residing at 123 Oldsville Road,
> > Somewhere, SM with phone number 12345, as soon as the user enters John
> > in the 'First Name' Access should pop up all records matching first
> > name John. When the user enters Smith, all records with John Smith
> > should show up. Same record searching for phone number, address fields
> > etc. The user does not need to necessarily enter data in a certain
> > order. If he enters only the phone number, it should show up all
> > records with that phone number.
> >
> > I hope I haven't left any confusion.
> >
> > Thanks,
> > Zef.
> >
> >


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 335 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,038 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 81 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 116 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 229 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 44 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 414 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 09:08 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.67081 seconds with 30 queries