You are here:

Using MS Access/Problem with a type number in access

Advertisement


Question
I have a database in Access and i have an id_pl which type is a number. But when the number is more than 8 digits dont filter with the rest of the number.

I want to filter this number 500028304 and print all number that have 500028. I only need the first number not all.

Thanks for your help.

Your regards.

Answer
First a number datatype has a sub type, so you need to know what that is. Some subtypes are long integer, integer, double, single, etc.

If it is a number data type, then you would need to set the criteria to:

BETWEEN 500028304 AND 500028999

Is there a reason this is a number? Generally you would only use a number data type, if you will be doing math with the value. However, if this will be a key field a number will perform better.

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

You gave very little information and I provided the best answer I could based on the information you provided.  

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.