access null values
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Access - Null Values

Access - Null Values

resolvedResolved · High Priority · Version 2003

replyReply Thu 24 Apr 2008, 13:11Delegate Claire said...

Claire has attended:
Excel VBA Intro Intermediate course

Access - Null Values

I am creating a query but there are various parts of the query that will not have information inputted into the fields. Is there a way that i can display all the information but exclude the blank fields?

I know you type is not null into the criteria in a specific field but that whole record will not be displayed and i want the other parts that have information to be displayed.

For upcoming training course dates see: Pricing & availability

replyReply Fri 9 May 2008, 10:56Trainer Stephen said...

RE: Access - Null Values

Hi Claire

Thank you for your question.

If you are aware ahead of running the query which fields will be blank, then you can simply hide them when the query runs. To do this simply go to the query design view and in the "show" row simply remove the tick from the relevant fields.

If however,you do not know which rows are null beforehand, then there is no way you could hide the fields without writing VBA code with embedded SQL strings. If this is the case, please let me know so I can give you some pointers.

Regards

Stephen

 

Please browse our web site to find out more about
access vba and other Microsoft training courses.

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard