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

Access 2010 query exact date from field

Hi every one and thanks you for your help in advance

I have what seems to be a very simple problem.

I have a table with dates (Date) in a date/time format (dd-mm-yyyy)
and I have a form with an unbound field called "FindDateSpecific".

I am trying to build a query which would run when I press a button on the form with the unbound field.

My problem is that I cannot figure out how to set the criteria in the query to get the date I am writing in the unbound field in the form.

In the same form I have another unbound field called "FindYearSpecific" and in the same query I have:
Field - FindYearSpecific: Year([Date])
Table - Nothing
Sort - Nothing
Show - Check
Criteria: Like [Forms]![frmSearchGeneral].[FindYearSpecific] & "*"

This gives me all the records for the specific year I am after - If I write nothing it gives me every record in the table.
I want my FindSpecificDate field to work the same way.

In the form you should only fill one of the fields of cause But I want both options.

Anybody out there knows the solution? Please...
Oct 31 '16 #1
2 990
jforbes
1,107 Expert 1GB
I think this is a similar question:Query-Access 97 Pulling a Specific Year(s) of Data

There are a few different ways to Query against the Year part of a Date, but I typically use something like this:
Expand|Select|Wrap|Line Numbers
  1. WHERE Year(SomeYear) = [Forms]![frmSearchGeneral].[FindYearSpecific]
This uses the Year Function, but there is also the DatePart Function.
Nov 3 '16 #2
Thanks jforbes :)

I might have written far to much information in this question.
Cause I think you misunderstood.

I have the year part down now (and thanks for you help there connecting the singe year with the between part).

My question here is for the entire date.

I want to be able to do exactly what I did with the years on date level.

Which mean that I want to be able to query for a specific date.

And hopefully afterward being able to combine that with a between date query to. But I think that might be two questions in a single thread ;)
Nov 4 '16 #3

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

Similar topics

2
by: AcCeSsDeNiEd | last post by:
I have several views with unions, outer joints and calculations that later combine to find a "final" report view. This was to make things easier for the web-based report programmer to just pull the...
1
by: prasantacs | last post by:
Hello Frnds, I AM USING ASP AND MS ACCESS 2000. WHAT I WANT TO DO IS, I WILL TAKE A DATE AS USER INPUT AND I WILL RETRIEVE DATA ON THAT FIELD. BUT HOW TO DO THIS. I HAVE TRIED A LOT BUT I DID...
2
by: Igor | last post by:
Can someone tell me sql query for filtering date field for current day, not last 24hours but from 00:00 to current time?
1
by: boblane1015 | last post by:
I need to query a table that has the date field formatted as follows: 12/1/2000 12:33:16 PM The query basically is looking for a range between two dates. select * from area_formulae where...
1
by: Donna Wiley | last post by:
I have a date field that could be formatted m/d/yyyy, mm/d/yyyy, m/dd/yyyy, or mm/dd/yyyy. I need to be able to enter a start date and an end date in a parameter query, i.e. Between (date) and...
10
by: jacekwbak | last post by:
Hello, I have following problem: table1 id / ArticleCode / ArticleColor 1 / 123 / blue 2 / 123 / blue 3 / 222 / green 4 / 333 / red
3
by: time2hike | last post by:
Hi, I have a query that pulls in hours for multiple Subprojects by Month and Year. To be able to compare data I need to Count the Month & Year for each subproject. Example Subproject1 11/2011 would...
1
by: Milwaukee | last post by:
My Access knowledge is fairly basic. We have several users of a split database where we enter comments on daily basis to keep track of our work. The comments Form is set up so that today's day...
1
by: lkehler722 | last post by:
query shows blank. I doesn't recognize the dates Date Store # Store Name Address Street City State Total Sales Item_Name 6 /23/2015 31475 Boulevard Deli Grocery 97-04 Rockaway...
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:
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
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...
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
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
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
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...
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.