Advice on data entry and quality

cayham86

Member
Local time
Today, 06:36
Joined
Jun 30, 2022
Messages
54
Hey guys

Just a quick post to ask, does anyone have any suggestions on the sorts of queries I can make for checking data entry and quality?
 
add Validation code to the Form's BeforeUpdate event.
 
i suggest you tell us what the query will do with codes and description?
what table are you validating?
and it is easier to demonstrate if you provide a sample db.
 
i suggest you tell us what the query will do with codes and description?
what table are you validating?
and it is easier to demonstrate if you provide a sample db.
I want to check all sorts from codes to descriptions to the way they are written etc but was posting this topic to see if anyone had any ideas for me
 
Your question is too vague for anyone to give a detailed answer.
To view/check existing data, use a SELECT query.
To alter existing data, use an UPDATE query.
However, as already stated, much better to ensure valid data is entered in the first place by using validation rules.
 
Validation is confirming data to be input conforms with your system's business rules which we don't know.

One example is that a numeric value cannot be negative. Validation test would be value > 0
 
The problem with using a table's field validation codes is that you cannot test all possibilities. It is very difficult to test against another table's contents, for example.

You have two automatic sets of tests available that can help in some cases.

Fields can have validation rules such as ">0", "Required" (i.e. cannot be left blank), etc.

Fields can ALSO have validation if they are related to another table and Referential Integrity is turned on, which is how you would check whether the code in a code field is represented in the code's translator/validator table.

The last, most complex, and non-automatic validation would be to put some kind of VBA code in the field's "BEFOREUPDATE" event or in the "LOSTFOCUS" event, either of which would be able to trap invalid values.

Typically, you cannot point to a single method of validation.

It IS possible to identify bad data using queries, but the trick is that, OK, you've found a bad record. SO... what are you going to do about it? The queries you might write would identify validation issues but rarely would they be able to fix the problem. I'm not saying "never" because, let's face it, your question was so wide open that almost anything is possible. Just understand that some things are more likely than other things in terms of data automatic cleanup. In one sense, the sky is the limit. In another, more practical sense, your knowledge and imagination are the real limits.
 

Users who are viewing this thread

Back
Top Bottom