forms in access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top