Discussion Locked

Access Queries

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm new to access. Where can I find information dealing on queries only. I subscrive to tech mail access and is really usefull but I need help on queries and criteria bulding.

7 replies

by stillatit

If you will be using Access seriously, you need to get one or more books on the subject. Reading snippits and advice from newsletters is NOT sufficient.

Go to your local bookstore and you will find a number of good books on Access. Find the bookson the version of Access you are using, and find one written in a style that you can deal with (some are written for beginners, others are almost reference manuals). You may end up buying a "Learn Microsoft Access in 21 days" type of book as a learning tool, and then another book which focuses on particular things you need.

Good luck.

by linda b.

The included "Help" option is a good place to start, and it comes with the software so you don't have to invest more dollars. I have found it useful since beginning with 2.0 up through my current 2000 containers. Since Access 97, on-line help is an option, as well, from the HELP drop-down menu.

Criteria coding (using immediate if's IIF, in groups, etc.) may give unexpected results, if you suspect this is happening, use the same criteria with dummy data to test it. Similar or the same code that you would use in the criteria section of a query may often be used in a form module which can then perform the query and you can further manipulate the data.

But don't interpret this to mean don't code in the criteria, I have many many times with great success. You probably know that if you want to code there you'll want to left-click on the criteria box and select zoom for a larger editing area. Left-click and choose build to build criteria, identify options, look-up the ones you are unsure of, again by the help screens.

Tip, you can use a table more than once in a query (you'll probably want to rename it even though Access attaches a numeric sequence to the table name. To rename a column in the query (using the GUI), in the FIELD: box type the name colon [ Table name.field name]. You could also concatenate using &'s to make a single column from two table elements example; Customer: [NameTable].[FirstNames] & " " & [NameTable].[LastName]

Also, don't be afraid to use the Wizard, then review the SQL code and modify it to your needs. Hope this is helpful. Good luck.

Linda B

This discussion is closed to new replies.