Hi folks.
I have a form, frmHistory, which has 3 toggle buttons (1 of which is
tglName, which I will be using to demonstrate my problem). The buttons
are used to sort the form (explanations below). I have set the
button's "Triple State" value to Yes, and the default value to False.
Here is the macro that I used for tglName (I assigned the macro to the
button's On Click event):
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Condition: Not [Screen].[ActiveControl]
Action: SetValue
Item: [Screen].[ActiveForm].[OrderBy]
Expression: ""
Condition: IsNull([Screen].[ActiveControl])
Action: SetValue
Item: [Screen].[ActiveForm].[OrderBy]
Expression: "frmHistory.Mem Name"
Condition: [Screen].[ActiveControl]
Action: SetValue
Item: [Screen].[ActiveForm].[OrderBy]
Expression: "frmHistory.Mem Name DESC"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I also assigned a macro to the form's On Open event:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Action: SetValue
Item: [Forms]![frmHistory].[OrderBy]
Expression: ""
Action: SetValue
Item: [Forms]![frmHistory].[OrderByOn]
Expression: True
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=
When I open the form, the form isn't sorted, which is how it should
be; when I click tglName, the form is sorted by name in ascending
order; when I click tglName again, the form is sorted in descending
order; and when I click it one final time, the form will be like it
was before, i.e. not sorted at all. So far so good. The problem begins
when I click tglName yet again - the form doesn't sort at all. The
same problem occurs in the other 2 buttons - when I've gone through a
full "loop" with whichever 1 button, the other 2 doesn't work. Any
ideas of what went wrong? Thank you (and my apologies if things are a
bit confusing). 0 2288 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Neil Coleclough |
last post by:
I am constructing a database to process product returns for my Company.
I have a number of toggle buttons to identify the stage to which each
return has been processed. For example, clicking the first button
confirms that the goods are now in our building awaiting initial
processing. This button then fires off an email to our warehouse staff
alerting them to the fact. I want to restrict these buttons to single
use, so that once the email...
|
by: Mel |
last post by:
Hi, is there any way I can implement toolstrip toggle button simular to the
MS Word alignment button?
if one toggle button already pressed down, if user click on the "pushed down
button", the other toggle button will push down and the "pushed down button"
will push up. I have trying to find groupID for toolstrip button, but seem
like they don't have it.
I hope anyone can help my question, thank you very much.
|
by: Wayne |
last post by:
Not sure if anyone else has noticed this, but it gets around one of the
more annoying limitations of using themed controls. Normally when
using themed controls a triple state check box looks the same in the
unchecked and null states - very annoying and not all that useful.
Today I found by accident that if the border style of the checkbox is
set to anything other than "solid", the check box takes on the
appearance of a non-themed...
|
by: Mike |
last post by:
Hi all,
Hum i just erased the whole message by mistake, :(
Ok so i want to hide a specific field in an Access form using a toggle
button, but i cant seem to get the right syntax. Right now im using a
macro to toggle the Visible bit (SetValue), but i want to add a filter
which would, when i press the button, compare the field value (string)
with another string, "No Action" for example, and then decide wheter to
hide the field or not.
What...
|
by: Anson.Stuggart |
last post by:
I'm designing a debounce filter using Finite State Machine. The FSM
behavior is it follows the inital input bit and thinks that's real
output until it receives 3 consecutive same bits and it changes output
to that 3 consecutive bit until next 3 consecutive bits are received.
A reset will set the FSM to output 1s until it receives the correct
input and ouput.
This is the test sequence with input and correct output.
1 0 0 1 0 1 0 0 0 1...
| |
by: JustJim |
last post by:
Hi All
I have a little application I'm working on for the local Department of Education. There is a "Main Menu" form that has a toggle button on it to show/hide the Database Window. When it is clicked it does the following
Private Sub tglDBwindow_Click()
DoCmd.SelectObject acTable, , True
If tglDBwindow Then
Me.SetFocus
'Me.tglDBwindow.DefaultValue = "True"
Me.OpenArgs = True
|
by: Chuck |
last post by:
How can I make an array of command buttons (or toggle buttons) on a form and
have a text box on the same form display the index of the button clicked? This
works very well in VB6, but I can't duplicate the action in Access.
Chuck
|
by: ll |
last post by:
I'm currently working on a form which consists of a show and hide
javascript. The toggle works fine, although when I click on submit, I
would like the page to reload with the toggle (show/hide) div in the
same state it was before being submitted. E.G. If the div was
visible, I'd like for it to be visible upon return.
Here's the script I'm currently using - thanks for any help,
Louis
--------------------------------------------
|
by: ARC |
last post by:
Hello all,
In access 2007, it appears you cannot put a toggle button underneath a menu
id and have it show a Pressed / Not Pressed status. If you make the
toggleButton ID as part of the main ribbon on a form, it will show the
pressed status.
Does anyone know of any workarounds?
If not, what I'm trying to do is have 2 styles of a particular form, and
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: 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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: 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.
| |