Inside the form properties under data I type 'ORDER BY' date. But everytime the user re-ordering the columns it didn't go back to where it should be organize, which is the date.
Is there a way to hard code this during the form event 'on load' or 'on open'?
Your help is much appreciated!
4 4005
I'm not sure I understand the question fully, but could you base the form off of a query that sorts by the date? I believe that this would still allow users to change the sort to the way that they need it at the time, but every time the form is opened it would be sorted by the date.
Hi Seth Schrock
That's exactly what I'm doing right now. I even put the Order by properties set by date. But every time I do my test and order it by firstname, lastname and when I close and open it, the form inherit the last order by. By the way, I'm using access 2003... and this is the reason why im looking a ways how to hard coded it during an event form.
I did some testing and what I found was that if I sent the form property Order By On Load (under the Data tab) to no, then it didn't remember the previous order settings that I would change. If it was set to yes, then it did remember how I had left the order. Also, I found an article that said that this property had some bugs prior to Access 2007. Some code you could try if the property setting doesn't work is in the Form's on load event. Just put in
Let me know if that works.
Thanks Seth! It works... I just have to turn it off so i wont capture the last sort in the memory.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: svilen |
last post by:
hello again.
i'm now into using python instead of another language(s) for
describing structures of data, including names, structure,
type-checks, conversions, value-validations, metadata etc. And i have
things to offer, and to request.
And a lot of ideas, but who needs them....
here's an example (from type_struct.py):
|
by: Steven T. Hatton |
last post by:
The following works:
template <typename T>
struct ID3M{
static const T ID;
};
template <typename T>
const T ID3M<T>::ID = {{1,0,0},{0,1,0},{0,0,1}};
|
by: |
last post by:
The data file is a simple Unicode file with lines of text. BCP
apparently doesn't guarantee this ordering, and neither does the
import tool. I want to be able to load the data either sequentially or
add line numbering to large Unicode file (1 million lines). I don't
want to deal with another programming language if possible and I
wonder if there's a trick in SQL Server to get this accomplished.
Thanks for any help.
Mark Leary
|
by: Earl Anderson |
last post by:
I browse Google MS Access groups frequently and have come upon the word
"hardcode" or its variations (hardcoding, hardcoded, hard code, etc) in some
of the posts. What exactly is "hardcoding" ? Is it the opposite of
"softcoding" (though I've never seen that word)? How does it differ from
any other code? Is it more strenuous to write hardcode than most other
code? Just curious.
Thx...
Earl Anderson
|
by: Tim S. |
last post by:
I have an ASP.Net app call another program, "helper.exe",
on its same server. I want the helper.exe to always have a
user = Administrator (as opposed to the standard
aspnet_user inherited from the "parent" process that
called it).
Is there any way in the code to hardcode the user,
regardless of how that process is started (i.e. whether it
is run directly by the administrator, or called through
the System.Diagnostics.Process.Start( ) in...
| |
by: bevanward |
last post by:
Hi All
I am finding unexpected results when inserted into a newly created
table that has a field of datatype int identity (1,1).
Basically the order I sort on when inserting into the table is not
reflected in the order of the values from the identity field.
Have I been wrong in assuming that it should reflect the order from the
sort?
|
by: Rich |
last post by:
Hello,
I am adding a makeshift Help component to my VB2005 project. That means I
am not using HTML help to create a chm (unless someone can explain how you
connect a chm file to a project - I have HTML workshop - and sort of know how
to use it).
Anyway, I am currently using a tab control and placing
textboxes/RichTextboxes in the various pages with my information. The
problem I am having is that I want to hardcode the text, so I am...
|
by: Israel |
last post by:
I've trying to write a query that seems like it should be simple but
for some reason my attempts are not working. This is really a general
SQL quesion and doesn't pertain to MySQL but I couldn't find a generic
database discussion group except on on advancement and theory and this
is really a basic query construction question.
Just say I have a table with three columns, name, date, score and
these represent the test scores for various...
|
by: DanicaDear |
last post by:
Hello again Bytes...I missed you!
First, background:
In a hotstick lab, we ship orders every two years. We ship a new order and the customer uses the new box to return the previous year's order. For example, in November 2007 we shipped an order. November 2009 those sticks expire, and we ship a new order (because customers can't be without sticks) and when they receive the new 2009 order they ship back the old 2007 order.
A box number...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |