473,394 Members | 1,935 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,394 software developers and data experts.

default value is current month name

i want my combo box to show the current month when i add new data...the combo query goes like this

SELECT tblMonth.MonthNo, tblMonth.MonthDescription
FROM tblMonth
ORDER BY tblMonth.MonthNo;

month no=month description
1 january......... and so on

is this possible...or any suggestions..thanks
May 18 '07 #1
3 4651
Rabbit
12,516 Expert Mod 8TB
i want my combo box to show the current month when i add new data...the combo query goes like this

SELECT tblMonth.MonthNo, tblMonth.MonthDescription
FROM tblMonth
ORDER BY tblMonth.MonthNo;

month no=month description
1 january......... and so on

is this possible...or any suggestions..thanks
There's a default value option for most controls.
May 18 '07 #2
JConsulting
603 Expert 512MB
i want my combo box to show the current month when i add new data...the combo query goes like this

SELECT tblMonth.MonthNo, tblMonth.MonthDescription
FROM tblMonth
ORDER BY tblMonth.MonthNo;

month no=month description
1 january......... and so on

is this possible...or any suggestions..thanks
Expand|Select|Wrap|Line Numbers
  1. SELECT tblMonth.MonthNo, tblMonth.MonthDescription
  2. FROM tblMonth where tblMonth.MonthNo = Month(date())
  3. ORDER BY tblMonth.MonthNo;
  4.  
May 18 '07 #3
Credit goes to all who replied on my post.

For the purpose of resolving my issue and reference to others who might use this



SELECT tblMonth.MonthNo, tblMonth.MonthDescription
FROM tblMonth
WHERE (((tblMonth.MonthNo)=Format(Now(),"mm")))
ORDER BY tblMonth.MonthNo;


then set default value to Format(Now(),"mm")))

Thanks for the help guys.
May 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Porthos | last post by:
Hi All, I'm trying to find the minimum value of a set of data (see below). I want to compare the lengths of these attribute values and display the lowest one. This would be simple if I could...
9
by: Gianni | last post by:
I have to insert in a html select the last 10 years <select name="year" onChange="month()" size=5> <option value="1994">1994</option> <option value="1995">1995</option> <option...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
21
by: planetthoughtful | last post by:
Hi All, As always, my posts come with a 'Warning: Newbie lies ahead!' disclaimer... I'm wondering if it's possible, using raw_input(), to provide a 'default' value with the prompt? I would...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
10
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under...
7
by: sharmilah | last post by:
Hi all It's me again. I now want to specify the current date in the format '26/06/2007' ie date/month/year as the default value in my mysql database. Which implies that by default the value of my...
5
by: bruce24444 | last post by:
I have a database which assigns warranty claims to people with a main screen showing number of files assigned to each person. The number assigned shows day, week, month and year numbers so they can...
43
by: kenneth | last post by:
Dear all, I have encountered this weird problem. I have a class definition with an __init__ argument 'd' which defaults to {}. This argument is put in the 'self.d' attribute at initialization...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
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...
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...

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.