Solved

Access Query

Posted on 2014-01-23
3
233 Views
Last Modified: 2014-01-23
This is just weird.

Look at the two images attached. When I put a description in a field with a number after it I can set the field to Fixed. If I take the number out of the end of the column description it assumes it's a text field and won't let me set as a number field. In Data view the second example formats to the left and with a number in the description it formats to the right.

This cannot be normal. Is it corrupt?
Capture.JPG
Capture2.JPG
0
Comment
Question by:DatabaseDek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39802768
Use of the NZ( ) function will return a string, no matter what you do.  if you want this value to be a number, you need to use the Val(NZ(..., 0)) or any of the explicit type conversion functions (cint, clng, cdbl ) to convert it to a numeric value.
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39802775
I may recommend to close the query and save the changes you made. Then, open it and try to remove the numbers. You may delete those spaces as well in between the colon sign ":" and the Nz.
0
 

Author Closing Comment

by:DatabaseDek
ID: 39803513
Thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question