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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
access-training-courses - queries

Forum home » Delegate support and help forum » Microsoft Access Training and help » access-training-courses - Queries

access-training-courses - Queries

ResolvedVersion Standard

Margaret has attended:
No courses

Queries

When I enter " " around a text word to have the query only display that information, I receive a message that the criteria does not match. I noticed in the design page that I had this listed as a number but it is text. I can't change it now as there are many relationships to many tables. So, how can I get this to be accepted and run the query?

RE: Queries

Hi Margaret:

If the field is shown as a Number data type in Table Design view, then it will only accept numeric data, not text data.

Thus, in a Query Criteria you have to enter a numeric value. A number enclosed in quotes - "123" - will not work, you will get a Data Type Mismatch Error message. You need to enter the number without the quotes.

Regards,

Tony

RE: Queries

Thanks Tony, When I enter it with no quotes, Access adds the quotes then gives me the same error. M

RE: Queries

Hi Margaret, perhaps you could post your 'criteria' line so that we can have a quick look and see if there is anything that could be 'tweaked' to help with your problem, look forward to hearing from you, regards Pete

RE: Queries

Hi,
Thanks Pete but this is confidential work as I am the data analyst in a Quality Management Department. I think I solved the problem and will let you know if not. Thanks again, Margaret

Access tip:

Hide Access Tables

One method of stopping your Access tables appearing in Database window, is to rename the table(s) with the prefix usys.

This converts the table into a system object, which cannot be viewed in the Database window.

You can show system objects in the Database window by the following:

Step 1: On the Tools menu, click Options.
Step 2: Click the View tab.
Under Show, select the System Objects check box.
Click OK.

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.1 secs.