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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Record Search in a Form



 
 
Thread Tools Display Modes
  #1  
Old October 4th, 2006, 03:21 PM posted to microsoft.public.access.forms
Rick
external usenet poster
 
Posts: 727
Default Record Search in a Form

I have a form that I enter document numbers into a document number field. I
would like to search all existing forms to identify if that document number
has already been entered. I would like for it to search for a duplicate
number when I tab to the next field after having entered the number. Is this
possible or what is the easiest way to do this?

Thanks in advance for any help.
--
RCAT1
  #2  
Old October 4th, 2006, 03:27 PM posted to microsoft.public.access.forms
Roger Carlson
external usenet poster
 
Posts: 222
Default Record Search in a Form

The easiest way to do this is to create a Unique Index on the Document
Number field in your table. In the Table Design view, select the field and
in the bottom where it says Index, choose Yes (No Duplicates)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Rick" wrote in message
...
I have a form that I enter document numbers into a document number field.

I
would like to search all existing forms to identify if that document

number
has already been entered. I would like for it to search for a duplicate
number when I tab to the next field after having entered the number. Is

this
possible or what is the easiest way to do this?

Thanks in advance for any help.
--
RCAT1



  #3  
Old October 4th, 2006, 03:44 PM posted to microsoft.public.access.forms
Rick
external usenet poster
 
Posts: 727
Default Record Search in a Form

Thanks for that information, however, in my situation, it is ok to have
duplicate document numbers. I just want to do a search to make sure that I
am not entering the same record mulitiple times.
--
RCAT1


"Roger Carlson" wrote:

The easiest way to do this is to create a Unique Index on the Document
Number field in your table. In the Table Design view, select the field and
in the bottom where it says Index, choose Yes (No Duplicates)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Rick" wrote in message
...
I have a form that I enter document numbers into a document number field.

I
would like to search all existing forms to identify if that document

number
has already been entered. I would like for it to search for a duplicate
number when I tab to the next field after having entered the number. Is

this
possible or what is the easiest way to do this?

Thanks in advance for any help.
--
RCAT1




  #4  
Old October 4th, 2006, 03:56 PM posted to microsoft.public.access.forms
Roger Carlson
external usenet poster
 
Posts: 222
Default Record Search in a Form

Then create a Unique Index on some combination of fields that should be
unique for a given record. Perhaps DocumentNumber and Date (or some such.)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L



"Rick" wrote in message
...
Thanks for that information, however, in my situation, it is ok to have
duplicate document numbers. I just want to do a search to make sure that

I
am not entering the same record mulitiple times.
--
RCAT1


"Roger Carlson" wrote:

The easiest way to do this is to create a Unique Index on the Document
Number field in your table. In the Table Design view, select the field

and
in the bottom where it says Index, choose Yes (No Duplicates)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Rick" wrote in message
...
I have a form that I enter document numbers into a document number

field.
I
would like to search all existing forms to identify if that document

number
has already been entered. I would like for it to search for a

duplicate
number when I tab to the next field after having entered the number.

Is
this
possible or what is the easiest way to do this?

Thanks in advance for any help.
--
RCAT1






 




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


All times are GMT +1. The time now is 01:13 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.