473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MS Access Expression required for data quality validation

Hi,

I have a table with RAG and Schedule Start / Schedule End, I am trying to write an expression to check that every "G", "A" or "R" item has a Schedule Start and Schedule End.

Check: ([Roadmap]![RAG]="G", "A", "R" <[Scheduled Start] And [Scheduled End])
Feb 16 '16 #1
7 984
ADezii
8,834 Expert 8TB
The following Expression should equate to -1:
Expand|Select|Wrap|Line Numbers
  1. Check: [Roadmap].[RAG] In ('G','A','R') And Not IsNull([Schedule Start]) And Not IsNull([Schedule End])
  2.  
Feb 16 '16 #2
thanks but it asks for Parameter value?
Feb 16 '16 #3
ADezii
8,834 Expert 8TB
  1. Sounds like a Syntax Error on the Field Name(s) and/or Table Name, are your Fields named?
    Expand|Select|Wrap|Line Numbers
    1. [RAG]
    2. [Schedule Start]
    3. [Schedule End]
    4.  
  2. Is your Table named Roadmap?
  3. If not, substitute the correct Field Name(s) and/or Table Name.
Feb 16 '16 #4
Yep - did that, replaced [Roadmap].[RAG] with [RAG], but still not working :(.

Do i have to define the [Schedule Start] & [Schedule End]; they are in the format of #DD/MM/YYYY# in the roadmap.

thanks again
Feb 17 '16 #5
ADezii
8,834 Expert 8TB
Can you Upload a small sample of the Database stripped of any sensitive info?
Feb 17 '16 #6
actually it worked, think because i copied an pasted your script the fields weren't recognized properly, when i manually re-entered it, it worked. thanks a lot.
Feb 17 '16 #7
ADezii
8,834 Expert 8TB
You are quite welcome, good luck on your Project.
Feb 17 '16 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kandidates | last post by:
If you are interested in a position, please review the requirements and reply with your salary requirement. My clients main concern with these positions is Python. Elaborating on your knowledge...
1
by: Bennett Haselton | last post by:
I want to get an ASP.Net hosting account with my ISP, and I'm trying to find out what level of access to the server is requried in order for me to view the server in Server Explorer in Visual...
18
by: Steve | last post by:
Hi I have a really weird problem and any assistance would be welcome. I have developed an app in Access 2002. The app runs perfectly on the development machine. I have packaged the app using...
4
by: Saso Zagoranski | last post by:
Hi! I have created an SqlCommand object and I have set some parameters to it... One of the parameters is of the DateTime type; here is the code: sqlCommand.Parameters.Value =...
1
by: Thomas Strauss, SRS | last post by:
Hi, I have a really hard time to find the access rights required for monitoring a printing queue or share in windows XP or Win2000/2003 server. We have an application that will remote control...
2
by: Hulikal | last post by:
Hi, I using the following query select dateadd(s, 1185255439727, '01-01-1970 05:30:00') on MSSQL 2005. I get the error Arithmetic overflow error converting expression to data type...
1
by: pradnya | last post by:
Can i have more access to post data in a file other than mentioned in 'action' param ? if yes , how to achive this ? I am working with php/mapscript and using frames.. i display my...
12
by: jayjayplane | last post by:
Thanks everybody here answered my last data field validation question about the alert of future date. Here I get another question, sorry, I am really an Access newbie... The question is : I...
0
by: Gabriel Genellina | last post by:
En Wed, 19 Nov 2008 20:06:37 -0200, Yann Vonder <yann.vonderscher@gmail.comescribió: If you put tmod in both libraries, you'll have two copies of it, and two copies of the data. Can't you join...
2
by: rtilson | last post by:
I am not sure why excel and access use the same method in formula. I am not access expert but been trying to figure it out. Here is the excel formula that I would like to use in access expression...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.