Hi I have a problem if one of my fields I chamge it to a text field.( I need to add some text on it) on an ascending ordered report it orders 10 then 100 then 5. How can I order properly my field not as a number but as a text field
regards,
4 1625
Hi I have a problem if one of my fields I chamge it to a text field.( I need to add some text on it) on an ascending ordered report it orders 10 then 100 then 5. How can I order properly my field not as a number but as a text field
regards,
My understanding is that is how it will order it in a text field. Reading left to right, 1 comes before 5. Suggest adding your text in a different field.
HI Yes but 10 comes before 5 in this case
Thanks,
HI Yes but 10 comes before 5 in this case
Thanks,
Yes, but it is no longer 10, you converted it to text and so it is now 1 and a zero. Reading left to right, 1 comes before 5, so that is why you are seeing the sort order as 1,10,100,2,20,2 00, etc...
In a query, use this Val([field1]) which will return the number value and give you the sort you are looking for.
You say you need to "add some text to it." Is this text the same each time, or is it always the same number of characters? Tell us a little about this.
The standard way to make digits entered as text order as you want is to add leading zeros thru formatting, but in a mixed alpha-numeric text field, you'd have to separate the alpha from the numeric component.
Welcome toTheScripts!
Linq ;0)> Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Kay Schluehr |
last post by:
Here might be an interesting puzzle for people who like sorting
algorithms ( and no I'm not a student anymore and the problem is not a
students 'homework' but a particular question associated with a
computer algebra system in Python I'm currently developing in my
sparetime ).
For motivation lets define some expression class first:
class Expr:
def __init__(self, name=""):
|
by: Robert Hooker |
last post by:
Hi all,
I'm looking for a way to sort/order the Category text items in a property
grid. The grids sort the categories by alpha when the catergories are
displayed.
Does anyone at Microsoft (or anywhere else) no of a way that we can override
that sort/order for the category text?
|
by: Chris |
last post by:
Any good routines or suggestions to assist me in re-ordering my records in my
datagrid?
i.e. I have a field in each record that is used for ordering (i.e. 1,2,3,4).
I would like to implement a set of options to move the record up one, down
one, move to top, move to bottom of this order. Thus changing that field
values, and the others in the table.
so then I can sort based on that field to order the values.
Using SQl server as backend....
|
by: Benjamin M. Stocks |
last post by:
Hello all,
I've heard differing opinions on this and would like a definitive
answer on this once and for all. If I have an array of 4 1-byte values
where index 0 is the least signficant byte of a 4-byte value. Can I use
the arithmatic shift operators to hide the endian-ness of the
underlying processor when assembling a native 4-byte value like
follows:
unsigned int integerValue;
unsigned char byteArray;
|
by: illegal.prime |
last post by:
Hi all, is there a key value collection in .Net that maintains the
ordering in which I add items.
I'm finding that I'm creating a number of classes that contain a name
and then some object. I would prefer just to use some collection that
maintains the ordering in which I add things (like ArrayList), but that
maps a key to a value.
I thought NameValueCollection was the right one - but it doesn't
guarantee ordering.
| |
by: =?Utf-8?B?VG9t?= |
last post by:
Cannot not seem to make any sense of the order that my key/values end up in
when added to the Hashtable...ideally, I would like to be able to sort the
keys/values...but not thinking it is possible.
For those who are sure going to ask why I am asking this....I use the
Hashtable for conveniently cross-referencing pairs of information...and I am
now trying to populate a combo box based on the hashtable contents using the
key as the combo...
|
by: dspfun |
last post by:
Hi!
Is there any way in C that one can guarantee that instructions are
executed in the same order as they are written in the program?
For example, say I have the following:
instruction1;
instruction2;
instruction3;
|
by: ajhayes |
last post by:
I posted a question here last week about an ordering database I'm trying to set up, and got some excellent help. So I'm hoping some of you might be able to get me on the right track with another question I've got on the same project.
Here's some general info on what I've done so far (For the record, I'm quite a novice at this.):
The database I'm setting up is for a small electric utility company to submit orders to the inventory warehouse...
|
by: rscheinberg |
last post by:
I am working in Access 2007 attempting to grab 2 characters from a text field named ProjectNumber. After determining what 2 digits to add in front to make it a year, I need to do that. I have done that in the code below to create a value for "intPN". I then need that value to become a number so that I can compare it to a range of years (1983-1987). The code below returns the 4 character year as intended. But I get a Datatype mismatch error...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |