Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access queries

ResolvedVersion 2007

Craig has attended:
Access Introduction course
Access Intermediate course

Access queries

When entering a criteria in square brackets to prompt the user for the filter, is it possible that all the possible answers appear in a drop-down box rather than you having to remember exact spellings, etc.

RE: Access queries

Hi Craig

Thank you for your question

It is not possible to do this using parameter queries.

This can be accomplished by creating a custom form with a combo box. You would need to write the code to populate the combo box when the form initializes. You would then need to write the code that runs the query with the relevant parameter.

An exercise similar to this is part of our VBA Excel course

Regards

Stephen

Access tip:

How To Find All Overdue Accounts?

To find overdue accounts create a filter that compares today's date with the Invoice Date in the table. To do this:

1. Open the Query in Design View
2. Select the field for the filter and in the criteria row enter:

<Date()

This filter returns records where the Invoice Date is before today's date.

This filter can be manipulated if, for instance, Invoices are due 15 days after the Invoice Date. For this the filter would be:

<Date()-15

This filter returns records where the Invoice Date is 15 days before today's date.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.