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

disabling record additions query

Forum home » Delegate support and help forum » Microsoft Access Training and help » Disabling record additions in query results

Disabling record additions in query results

ResolvedVersion 2003

Camilla has attended:
Access Introduction course

Disabling record additions in query results

Hi

I am trying to find a way that will disable the ability to add a new record in the results of a query.

I have managed to show the results of the query in a form and have disabled additions in there but wondered if i could also do a similar thing in the tabular view of the query results.
I am allowing the user to choose which way they view the results (in a table or in forms)

Thanks

Camilla

RE: Disabling record additions in query results

Hi Camila

Thanks for your question

The short answer is that there is no easy way to prevent the editing and updating of a query. It is however, unnecessay as data should always be viewed through forms and never directly in tables or queries.

To get the "feel" of looking at the data in the table, create a second form to your existing one and set its default view to "Datasheet". Thus you form will look as if you are viewing it in the original table.

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.