473,394 Members | 1,916 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.

Partial User Value in a Query

Hello there,

I'm guessing my title is a little confusing so i'll clarify

I currently have a query that is referring to information in the Appointments table, and the relating field is AppointmentDate.

Currently the format is dd/mm/yyyy and I would like the query to display all appointments in December

When the Box prompts I've tried to enter #/12/# and */12/* but neither seem to work.

I only have [Month] in the criteria field at the moment, just to enable a pop up for data entry, so any helpw ould be appreciated
Jan 8 '08 #1
7 1453
Rabbit
12,516 Expert Mod 8TB
Use Month(AppointmentDate) = 12
Jan 9 '08 #2
Appreciate the Help Rabbit, but unfortunately I wasn't clear of My intention.

I want the query to use the month the user enters, rather than statically being December.

so instead of writing "between 1/1/2007 and 31/12/2007" they just have to enter "December" or "12", catch my drift?
Jan 9 '08 #3
Rabbit
12,516 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. Month(AppointmentDate) BETWEEN 1 AND [Enter Month Number] AND Year(AppointmentDate) = 2007
Jan 9 '08 #4
Once again Rab, your a ray of sunshine in my access life.

One more thing :D anyway in the sql statement to make the 1 and enter month prompt the user to enter and then it inserts it into the statement? or am i being too ambitious
Jan 9 '08 #5
Rabbit
12,516 Expert Mod 8TB
I'm not quite sure what you mean. Are you talking about turning the 1 into a parameter as well?
Expand|Select|Wrap|Line Numbers
  1. Month(AppointmentDate) BETWEEN [Enter Start Month Number] AND [Enter End Month Number] AND Year(AppointmentDate) = 2007
Jan 9 '08 #6
It's odd how you always overlook the simplest of things. Once again Rabbit you helped me out. Much Appreciated Amigo :D
Jan 12 '08 #7
Rabbit
12,516 Expert Mod 8TB
Not a problem, good luck.
Jan 12 '08 #8

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

Similar topics

1
by: ArunPrakash | last post by:
Hi All, I have the following scenario. I have a table called Invoice. This has around 30 columns of which i have to do a retrieval based on filter conditions on 10 columns. These filters need to...
9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
2
by: underground | last post by:
Hi, everyone I've been trying to figure out a way for a user to update there information. I'm using sections to identify the specific user..Here is the form <? include("include/session.php");...
5
by: SQL Learner | last post by:
Hi Alex (Kuznetsov) and All, This is to follow up with my last post, "Link two tables using partial word match". How can I UPDATE table using partial word match? How can I write a SQL statement...
5
by: Matthew Wilson | last post by:
I wrote some code to create a user and update a user on a remote box by sending emails to that remote box. When I was done, I realized that my create_user function and my update_user function were...
5
by: SAL | last post by:
Hello, I would like to be able to set the WHERE clause of a select statement on the fly. I have a DataAccess layer designed using the DataSet designer and a BusinessLogic layer using classes. The...
5
by: lazy | last post by:
Hi, I want to write a script such that it executes 2 mysql queries on the server. But before executing the second query, I would like to return the results of the first query to the user and then...
10
by: JDeats | last post by:
So I have a class that spans over two partial classes in code, here's an example (do not read much into this, the code is of no practical use, this is just a simple example of where my confusion...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
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
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...

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.