Solved

Access Query

Posted on 2014-01-23
3
206 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you!
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now