A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

forms in access



 
 
Thread Tools Display Modes
  #1  
Old February 19th, 2006, 07:16 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default forms in access

I am setting up a database of individuals- I have set up a form to do this
and I want to know how to prevent if more than one form is completed for the
same individual in error- possible to set up a dialog box to warn me of a
duplicate record?
  #2  
Old February 19th, 2006, 07:56 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default forms in access

Check this link if the sample answer your question

http://www.databasedev.co.uk/duplicates.html

--
\\// Live Long and Prosper \\//
BS"D


"prav_123" wrote:

I am setting up a database of individuals- I have set up a form to do this
and I want to know how to prevent if more than one form is completed for the
same individual in error- possible to set up a dialog box to warn me of a
duplicate record?

  #3  
Old March 5th, 2006, 06:08 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default forms in access

Thank you for sending me code details (student job outcome results)to prevent
duplication- this is basically what I really need.HoweverI do not have the
equivalent of a student number- I was hoping to use date of birth and surname
as parameters;this would not be foolproof but it would serve my needs- how do
you introduce more than one parameter in the code and how isthe code linked
to the forms/table - I am a real novice.Please help.Thanks.I have tried to
substitute student number with date of birth but it has not worked.

"prav_123" wrote:

I am setting up a database of individuals- I have set up a form to do this
and I want to know how to prevent if more than one form is completed for the
same individual in error- possible to set up a dialog box to warn me of a
duplicate record?

  #4  
Old March 5th, 2006, 08:45 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default forms in access

If that the criteria you have in the sample
stLinkCriteria = "[strStudentNumber]=" & "'" & SID & "'"

To match it to your needs, try something like

stLinkCriteria = "[SurName]='" & Me.[SurName] & "' And [DateOfBirthField]=#"
& Me.[DateOfBirth] & "#"

But you must consider the fact that there might be more the one surname that
was born in the same date.

--
\\// Live Long and Prosper \\//
BS"D


"prav_123" wrote:

Thank you for sending me code details (student job outcome results)to prevent
duplication- this is basically what I really need.HoweverI do not have the
equivalent of a student number- I was hoping to use date of birth and surname
as parameters;this would not be foolproof but it would serve my needs- how do
you introduce more than one parameter in the code and how isthe code linked
to the forms/table - I am a real novice.Please help.Thanks.I have tried to
substitute student number with date of birth but it has not worked.

"prav_123" wrote:

I am setting up a database of individuals- I have set up a form to do this
and I want to know how to prevent if more than one form is completed for the
same individual in error- possible to set up a dialog box to warn me of a
duplicate record?

  #5  
Old March 5th, 2006, 09:30 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default forms in access

On Sun, 5 Mar 2006 10:08:21 -0800, prav_123
wrote:

I was hoping to use date of birth and surname
as parameters


Just hope you never have twins enrol.

John W. Vinson[MVP]
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is a French Spellchecker a "required" update for English speak French Spellcheck Required? General Discussion 23 April 26th, 2005 01:17 AM
What is the difference between 2002 and 2003? Red Sonya General Discussion 2 March 1st, 2005 05:10 AM
is Access 2003 any better than XP? Gorb General Discussion 4 November 11th, 2004 09:44 PM
is Access 2003 any better than XP? Gorb Using Forms 2 November 11th, 2004 09:20 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.