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
Solved

Access Query

Posted on 2014-01-23
3
222 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
3 Comments
 
LVL 47

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

789 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