473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can we do a sorting on a field that is of type text but contains numbers (

14
Hello,
I am developing an access application where I am importing my data from an excel file. There is a field that needs to be sorted in a descending order. This field is of type "Standard" in the excel file and of type "text" in the access file. I did a query and put next to the sorting option "descending"; however, the results of the query are not correct. I tried to change the type of the field in access from "text" to "numeric", but still it is not working correctly. I also tried to change the type of the cell in excel to "numeric", and I got same results. Any suggestions?
Please note that this field contains decimal numbers (example of the number format: 6*147,38)

Thank you for your time,
Regards
Jul 21 '15 #1
2 922
jimatqsi
1,271 Expert 1GB
When you changed the Excel file to numeric did you also pay attention to the numeric formatting? You don't want any unnecessary string characters in there. Only the decimal place marker and a - if needed, but no money sign and no separator between 3 digits.

Also, in the import specification, be sure to specify the proper field definition there.

Jim
Jul 21 '15 #2
Rabbit
12,516 Expert Mod 8TB
6*147,38 is not a number. It would be if you were to evaluate the formula. But right now it is a string representing a mathematical formula, but it is not a number.
Jul 21 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
12
by: Randell D. | last post by:
Folks, I have a form called "ourTestForm". Its a test form - nothing special - it contains five input tags - they are named one, two, three, four and five. The input tags are of type...
1
by: jpatterson | last post by:
Is it possible to use a text and number in the same field. Currently the field is formatted as numbers, fieldname credits, this field is used to indicate the number of credits a person gets from...
6
by: MLH | last post by:
I have this little snippet running whenever I want to list my table field names in the debug window, along with their field types... For i = 0 To TempRecordset.Fields.Count - 1 Debug.Print...
2
by: colleen1980 | last post by:
Hi: Is there any way by which i insert 0 before the value by query. I have a table contains 10,000 records and because of some reason i need to move 0 before number of field Tech_ID. Type of field...
4
by: CH. | last post by:
Hi, i read a lot of ajax stuff and i was asking myself this: when clicking on the fieldname in a gridview (sorting enabled), the whole database is sorted according to that field. Is the whole...
13
by: keirnus | last post by:
Hello, I am currently using Listview control. The sorting feature of the control is useful. <ListviewCtrlName>.Sorted = True <ListviewCtrlName>.SortKey = <FieldToSort>...
2
by: radforms | last post by:
Hi All, just wondering someone out there could help me solve a little problem in my mysql database: Table 1 Name: wp_wpsc_product_files Fields: ID, Name, Description, Additional_Description ...
11
Catalyst159
by: Catalyst159 | last post by:
I have a database with one Table called marriages. marriages Table Contains the following Field: Field Name = Date of Marriage Data Type = Text ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.