473,405 Members | 2,176 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,405 software developers and data experts.

A97 option group or combo-box data question?

MLH
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.
Nov 13 '05 #1
3 1463
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

Nov 13 '05 #2
MLH
I'm part-way there...

for ClientDataChanged=-1 to -12 step -1:debug.print
month(dateadd("m",ClientDataChanged,now));year(dat eadd("m",ClientDataChanged,now)):Next
ClientDataChanged
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.
Nov 13 '05 #3
MLH wrote:
I'm part-way there...

for ClientDataChanged=-1 to -12 step -1:debug.print
month(dateadd("m",ClientDataChanged,now));year(dat eadd("m",ClientDataChanged,now)):Next
ClientDataChanged


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 clientdatachanged variable)

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
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...
2
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...
2
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
2
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...
5
by: tsnyder | last post by:
I need to have an option button that allows editing to a field only when it is checked.
3
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...
7
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...
2
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....
6
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. ...
2
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:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
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,...
0
tracyyun
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...
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.