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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|