Hello. I want to create a query that will return all records that were entered from today to 7 days ago. I have a DateEntered field on my table that stores the date information and I have been playing around with what I entered in the criteria there, but nothing seems to be working. I was trying to use the DateAdd function but with negative numbers, but I am doing something wrong.
Thank you in advance to any assistance that could be provided. :)
What is the best way to determine start and end of a day? I am trying to pull all records that are time stamped with today's date and time. I tried >now()-1 but because hours are involved I end up with records from yesterday as well. I need to pull EVERYTHING that has today's date and time.
I have a form that people have to fill in to report when someone is off sick.
The first notification they have is that the person is off sick - so they can only enter a start date on the form, and have to leave the end date blank
I want the end date to always be "today" - and to automatically update to "today" until an end date is entered by the user. To enter the end date, the user will go back to the original record where they put the start date in, and then enter the end date.
Any ideas... using date () will put today's date in, but then when I go in tomorrow, it will say yesterday's date...
I am building a database for a real estate agent, and as such have tables of client details/requirements and properties available for sale.
I intend building a query that will match up a number of fields (number of bedromms, price etc).
How can I best build my query so as not to continually match the same properties to the same clients? I imagine I will need some SIMPLE method of identifying/tagging the properties for sale when the client has either viewed the property or has deemed it unsuitable. This would then not bring up these records when I ran the query a second time.
A SIMPLE method of remveing the 'tag' would also be useful.
Any suggestions appreciated. The simpler the better (I am only a novice) !
I have not found the solution to this looking elsewhere, but basically what I am trying to do is the following:
person date 1 1/1/2012 1 12/15/2012 2 6/12/2012 1 6/13/2012 2 6/14/2012 3 6/16/2012
I want a query which shows the count or records for which a person has a date within 30 days of each other. This is being queried from a large table in which records would may not be sequential by person. Thus in my example above, the third record for person 1 would be omitted as well as the record for person 3.
Dear All, I have a field named: “reminder date” in a query and would like to show only records where the reminder date is within the next week whenever the query is run (ie if todays date is 26th may 2006 and I run the query now It would only show records that include the following dates 27,28,29,30,31, july and 1,2 June)
Ive tried the below bit of code but this shows to many records beyond one week. >=DateAdd("d",+7,Date())
I'm planning to create a form that would show total number of sales transaction per week: If today's month is February, i would like users to see records like this: (Week should start on a Monday and ends on Saturday)
I'm a little stuck on three of my nine queries. Bascially, three of them display records for a given day, three for a given week and three for a given month. The criteria for days and months was pretty easy; I just got:
[Enter Date] for a single date DatePart("m", [Date]) = [Month] for a given month
However, I'm really stumped on how to work out the criteria needed for working out records for a given week. All I managed to work out was:
<=[Week Ending] And >"Date[Week Ending]-7"
This works when there is no test data, but not when there is. I know it's something to do with the -7 bit, but I can't work out what.
I have a summary form with the company name,week number, week-ending automatically populated. e.g. this week is week 4 and users enter records for week 4 as the week number is automatically generated. Basically the system will just recognise today's date and generate the week number. Problem is I am trying to display previous week records and I do not know how to filter it as my week number is generated automatically, week by week. All the other forms are linked to this week number. How can I display records for a specific week that I want? say, I want to display all records for week2, etc. I am dumbfounded as I am on a learning curve with Access.
hello once again, i'm trying to generate a report based on a query i'm attempting to create right now. I have a field in my table that is a timestamp. The problem is that the timestamp is "text" and the timestamp is not only the date, but also the time. how could i view all the records for today? i'm thinking regular expression or something similar to that effect, but i don't have any clue how to do something like that. I was able to say "between" [string value] and [string value]. that worked, but i want the report to be autogenerated. i don't want to have to type in the day's date everyday. any ideas? *j
Hi All I need to be able to do a count before and after the current date. My table has fields named month and year and I need to find the count before and after the current month. Any help would be much appreciated. ChrisD
Hi I have a form that I use to capture information. The "DateReceived" field prefills with todays date. I also have a "DateResolved" field that I would like to prefill with the current date, however that date would be different from the Date Received date. The reason for this is because user logs information then goes back into the form and closes the case by entering a Date Resolved. Thank you
I have an unbound text box. I would like to use the Iif function so that if someon'e preferred address is B (business) It returns the field [BUS JOB TITLE] and if it isn't B it returns [BUS JOB TITLE] and then [BUS EMPLOYER] on the next line. I tried this: =IIf(([PREF TYP]="B"),[BUS JOB TITLE],([BUS JOB TITLE] & Chr(13) & Chr(10) & [BUS EMPLOYER]))
And it's returning "#ERROR". Help! I need to finish this today for a big meeting. Thanks!