I have a date field in a table which is Short Date with an input mask of 99/00/000;0;_
I do not want (for reasons too complicated to go into here) to put this as a required field even though it is a required field (makes sense from my end!).
If I set Required Field to "No" what format can I put in the validation rule field so a message (from my validation text field) comes up if the field is left blank??
I have a text box that the user enters a number into between 1 and 5. I can use the validation rule in the table and that works nicely, the trouble is that I don't want the standard Access message box.how to apply the validation rules.
I am having problems with this query: DELETE * FROM [TableOfTrainees] WHERE [TableOfTrainees].[CurrentYearTrainingDate]="" AND [TableOfTrainees].[LastYearsTrainingDate]=""; When I try to run it, an error points to the criteria. Both CurrentYearTrainingDate and LastYearsTrainingDate are Date/Time format. I need to be able to check if those fields have a date in them or are blank ("", IsNull and IsEmpty do not seem to work). Any ideas are deeply appreciated -- thanks ahead of time!
Hello all - One of my 3 users' computers keeps coming up with an error when I try to enter the following command in the "Validation Rule" field of the table design view:
>=#1/1/1998# And <=Date()
Some investigative work showed that it's erroring on this clause: "<=Date()". Any idea why it would error on her pc and not the other 2 pc's? Her pc is old, but we're all using Access 2002. The error says: "The function you entered can't be used in this expression." Any thoughts would be helpful. Thanks much.
I have a field [CurrentDay] of type Date/Time. The values for this field are entered through the selection from the date picker. However the time of the day always come along with the date - even if it is not seen. This creates a huge problem when making a query based on this field because no results will be returned unless the time is included with the date in the criteria.
The other part to the problem is that I cannot find a built in function in the expression builder to generate the current date without appending the time - now() certainly does not do that - even if the time is not seen it is there.
I have a variable (dtDueDate as Date) showing as 6/28/2013. I want to append a time value to it (dtMaxTime as Date) which is 5:00 PM so dtDueDate reads 6/28/2013 05:00:00 PM. I have been going in circles trying to figure this out. My goal is to append this date to a table field which has a datetime (General Date).
Hey I have a little problem, I have this assignment for school to make a simple database, I did all that but there's one little thing I can't seem to find. I have to limit a Field's length to 15, but not through Field Size but thanks to a validation rule, and since I don't know a lot of validation rule commands I have no idea what the syntax is for the field length. How can I do this, it's pretty urgent actually, need to have this by tomorrow :s Thanks!
Relatively new to access, just trying to create a range in a validation rule. What I have are 2 cells, Date_Taken and Date_Returned. I want Date_Returned to only accept values between: Date_Taken and equal to or less than the current date.
Between "Date_Taken" And <=Now()
is what I've got at the mo', yet it's not working. I'm gathering that I'm referring to the Date_Taken cell incorrectly. Any help? I don't see any tools to fix such a thing.
Hey guys, what is the easiest way to validate a field based on another.
I have 2 combo box, lets say cboOne and cboTwo. If cboOne = 1 then cboTwo must be blank/Null. Can I place this validation in the table validation properties. If so, how do I word the validation code.
Hi,I'm really struggling to try and find a solution to a problem.I need to find a validation rule that only accepts:letters, spaces and hyphens (-) in the field.I have tried for at least 14 hours today and most of yesterday afternoon, but I just can't get it.The furthest I've got is rejecting everything except from letters and spaces, with each these codes individually:(I've only listed a few so you could see just a fraction of what I'd already tried)Is Null Or Not Like "*[!((a-z) or (Chr(32),Chr(45)))]*"Is Null Or Not Like "*[!((a-z) or (Chr(32)) or (Chr(45)))]*"Is Null Or Not Like "*[!((a-z) and (Chr(32)) and (Chr(45)))]*"Is Null OR Not Like "*[!((a-z) or (( ),(-)))]*"Is Null OR Not Like "*[!((a-z) or ( ) or (-)))]*"Is Null OR Not Like "*[!((a-z) and ( ) and (-)))]*"Is Null Or Not Like "*[!((a-z), ,-)]*"However, it is also rejecting hyphens, which I need it to accept.Also, unfortunately it is accepting bracketsHopefully someone here will have a solution, because I'm stumped, :confused:James
Question about validation rules. I have a user who has set up a validation rule to allow certain values to be entered.
Something like if the value equals 4 or equals 5 then it would accept it. Now she would like the validation be set so they can put both 4 and 5 in together. How can this be done?
What would be the 'validation rule' to input into the properties window for a Client ID? - (validation rule would make sure that none of the Client ID's are the same). ;)
Table: TRANSACTIONS Field: DATE Field: AMOUNT Field: loads more...
What I want is a validation rule on the AMOUNT field, which says that the data entered cannot be greater than the number in the PARM1 field. I can't get this to work, and I reckon it's becuase there's one record in the PARAMETERS table, but lots in TRANSACTIONS. In solving this problem I do not want to add any more records to PARAMETERS. The idea of that table is that it is an easy way to customise the database, not a way of storing data. I've putting this in the validation rule box (but it didn't work): =<Tables![PARAMETERS]![PARM1]
hi i am new to access but i am trying my hands on it...i have a problem:i want to put some validation rule(constraints) on a field in the table such that user can only able to enter only 10 digit number and even if that number starts form "0" then it shows the starting zeros without concatenation.for ex if user put 0681482803 then it should not convert back to 681482803also one more thing i want to ask what is the best Field size for 10 digit number.. as long integer doesn't fulfill the requirement and double is very large
I have a form that records a unique number which requires a full stop to be present. Is there anyway of ensuring a user has to enter a "." somewhere in this box?
I almost read all posts about validation rules and I cant find solution for my problem. I want to set that users must enter 13 numbers no more no less in form field,and if this condition is not satisfy I want to give warning to users with pop up massage. Is it posible to make with validation rule or I must use code.
Hello can anyone help me I am trying to make a validation rule for a field. It needs to be Between 0 And 28 OR "NA". When I use this in the validation property it works for the numbers and text but if you input say NJ or any other combination it issues a message box saying cannot evaluate the constraint, check Validation rules. Am I missing some important syntax or something. Any help gratefully appreciated. Barry
I want to restrict data entry to a three letter code. It must be letters and not numbers. I am entering the rule at table level so that should I pass the db onto someone else the rule remains in place even if somebody creates a new user interface. Thank you
Here is a really simple question for someone who knows the answer, lol.
I want to enter a statement on my form that prevents the entry of specific text based on a previous entry.
For example:
One field named "Make" may have the entry "Toyota". If Toyota is typed in that field then the next field named "Model" must return an error message if someone types in Malibu.