I wish to give user a tool to select period of car purchase.
(IE, the block of time within which sale made)
So, I'm gonna give him an option-group of choices like...
this week
this month
last month
in last 3 months
in last 6 months
And, in case none of the above 5 are good enough to sufficiently
narrow the number of choices, I'm going to give him a combo-box
of the 12 months of the year. That's generally pretty simple, but I
want the choices to 'drop down' this-a-way if he clicks it today...
May 2005
April 2005
March 2005
Feb 2005
Jan 2005
Dec 2004
Nov 2004
Oct 2004
Sep 2004
Aug 2004
Jul 2004
Jun 2004
And if he clicks in Feb '06
Jan 2006
Dec 2005
Nov 2005
Oct 2005
Sep 2005
Aug 2005
Jul 2005
Jun 2005
May 2005
April 2005
March 2005
Feb 2005
The months are sort of backing up, as you can probably see.
I'm sure there's a clever way to do this. Its important to me that
whatever he chooses indicates a date value I can use in code
to determine month & year scope of vehicle sales records to
extract. In another combo-box altogether, I'll let him pick the
vehicle from a shorter list of only those sold in specified mo/yr. 3 1480
MLH wrote: And, in case none of the above 5 are good enough to sufficiently narrow the number of choices, I'm going to give him a combo-box of the 12 months of the year. That's generally pretty simple, but I want the choices to 'drop down' this-a-way if he clicks it today...
May 2005 April 2005
12 months.
* create a query that returns this set
* base your combobox on that query.
If you need hints on creating a date range, see my website.
--
Bas Cost Budde, Holland http://www.heuveltop.nl/BasCB/msac_index.html
I'm part-way there...
for ClientDataChang ed=-1 to -12 step -1:debug.print
month(dateadd(" m",ClientDataCh anged,now));yea r(dateadd("m",C lientDataChange d,now)):Next
ClientDataChang ed
5 2005
4 2005
3 2005
2 2005
1 2005
12 2004
11 2004
10 2004
9 2004
8 2004
7 2004
6 2004
Now all I've gotta do is figure how to get this stuff into a query.
MLH wrote: I'm part-way there...
for ClientDataChang ed=-1 to -12 step -1:debug.print month(dateadd(" m",ClientDataCh anged,now));yea r(dateadd("m",C lientDataChange d,now)):Next ClientDataChang ed
Create a table with just one number field; fill it with values -1
through -12. Base your query on this table, using the expression you
found (substitute the table field for the clientdatachang ed variable)
--
Bas Cost Budde, Holland http://www.heuveltop.nl/BasCB/msac_index.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Georges Heinesch |
last post by:
Hi.
I created an option group using the wizard. I included 3 option buttons.
An option group (in general) can be enabled or disabled completely
(includung option buttons and their respective labels) when enabling or
disabling the frame around the option group. This is quite handy, since
not every individual control inside the otion group has to be enabled or
disabled.
Now, I need to add 3 text boxes to the 3 option buttons. I would...
|
by: Corrine |
last post by:
Is there a way to cancel a change in an option group? The option group still
changes to the option clicked on when clicking on the NO button with the
following code in the BeforeUpdate event of the option group.
If MsgBox("Change?", vbYesNo) = vbNo Then
Cancel = True
End If
Thanks!
|
by: Chuck Insight |
last post by:
Hi All,
The table underlying this form has three yes/no fields that refuse to work as selections within my option group. How can I make this happen?
Thanks very much,
Chuck
|
by: andy.mcvicker |
last post by:
Hi Gang
I used the Option Group wizard to create a group of radio buttons on a
form. It created it with three options and it looks fine. However
when I run the form the first option is checked but I can't click on
the other options to make them selected. It seems the first option is
locked somehow. What have I done wrong?
Andy
|
by: tsnyder |
last post by:
I need to have an option button that allows editing to a field only
when it is checked.
| |
by: El |
last post by:
I can get a total count for a whole option group field, but I need to
be able to count each individual selection in an option group on a
report. For example if I had a yes or no option...I would need to know
how many yes selections there are and how many no selections there are.
Please help!!
|
by: sparks |
last post by:
When you enter an option group you can move to each option with the
arrow keys and select with the space bar.
Option groups don't have keydown events so has
anyone come up with a way to allow keyboard entry for
option groups?
Just a simple way to select with 1-5 from the keypad or some such.
thanks for any help or a link to what to read.
|
by: fishhead |
last post by:
Hello this is my first post to this group. I have a form on which the
user enters an eleven digit number the first three of which are a
special prefix. This prefix uniquely identifies an airline. Also on the
form is an option group of handling agents who process freight for
these airlines. Currently the user manually clicks one of the option
group boxes depending on the prefix entered. What I would like to do is
add an event procedure to...
|
by: indhu |
last post by:
hi all
after a long time am back.. happy new year guys
form name: task_allot
table: task
field taskid is a combo gets the value from scene table
option group name taskcategory= mod,tex,lig.
when a person select first time in taskid the mod will be enabled other 2 should be enabled =false
when a person select the same taskid second time , the mod and lig should be enabled= false.
|
by: jarekz |
last post by:
Hello friends. This is my first post here. Please forgive me any mistakes.
Could you help me solve the problem that I have in MS Access 2003?
I downloaded this template from Microsoft:
http://office.microsoft.com/en-us/templates/TC010185811033.aspx
and started working on it to modify it for my users' needs. At the bottom of the first page of the tab control I added a few text boxes and closed them within an option group. It's not a real...
|
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: 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: 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: 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...
| |