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  

Validation on form



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 06:33 PM
D
external usenet poster
 
Posts: n/a
Default Validation on form

I want to check data in the textbox that feeds a primary
key field right after the value is entered instead of
getting an error when the record is attempting to save.
  #2  
Old June 7th, 2004, 06:52 PM
Rick B
external usenet poster
 
Posts: n/a
Default Validation on form

Use the data validation rule, or use some code in the field's AfterUpdate
event.

Rick B

"D" wrote in message
...
I want to check data in the textbox that feeds a primary
key field right after the value is entered instead of
getting an error when the record is attempting to save.


  #3  
Old June 7th, 2004, 08:05 PM
D
external usenet poster
 
Posts: n/a
Default Validation on form

I should have been more clear. How do I check for
duplicate records, ie;Part# already exists in tblParts.
My VBA skills are fairly limited so I appreciate the help.
-----Original Message-----
Use the data validation rule, or use some code in the

field's AfterUpdate
event.

Rick B

"D" wrote in message
...
I want to check data in the textbox that feeds a primary
key field right after the value is entered instead of
getting an error when the record is attempting to save.


.

  #4  
Old June 7th, 2004, 09:35 PM
Rick B
external usenet poster
 
Posts: n/a
Default Validation on form

I have seen this asked several times. You might do a search.

Basically, as the user exits the field, you must do a DLOOKUP to see if the
table already has a record. If it does, then you can issue an error.

Unfortunately, I can't help you with the details, but if you do a bit of
searching you should come up with it. I know I have seen it at least twice
in hte last week.

Rick B


"D" wrote in message
...
I should have been more clear. How do I check for
duplicate records, ie;Part# already exists in tblParts.
My VBA skills are fairly limited so I appreciate the help.
-----Original Message-----
Use the data validation rule, or use some code in the

field's AfterUpdate
event.

Rick B

"D" wrote in message
...
I want to check data in the textbox that feeds a primary
key field right after the value is entered instead of
getting an error when the record is attempting to save.


.



 




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:18 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.