Solved

Access Query

Posted on 2014-01-23
3
218 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 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