Rookie Needs Query Date Field Help

Dec 28, 2006

I have three tables. Each table has the following
TblAA - aaDate, AAFS, AAFT, AAFU
TblBB - bbDate, BBFS, BBFT, BBFU
TblCC - ccDate, CCFS, CCFT, CCFU

The "xxDate" fields are (mm/dd/yyyy)
all other fields contain numerical data. (1,5,10 etc.)

I have linked the tables and it returns all of the results. However, My issue is that I want the user to be able to enter one date range to search all three tables at once.

Let's say tables AA and BB have data entered on 12/01/2006 and 12/15/2006, but CC has data from 11/07/2006. The user would enter Beginning Date: 12/01/2006 Ending Date: 12/31/2006 and they would receive results from the first two tables only.

I hope this makes sense. TBN (Tough Being a Newbie)

View Replies


ADVERTISEMENT

Rookie Of Rookie Question

Sep 6, 2006

I finally got the team's database running but one problem. The database is on the network drive an when more then one member try to use the database, they get an error "database is in use". Is there a way so more then one person can use the database at a time. And this may seem like alot but is there a way to just give viewing access to some people so they edit nothing?

THANKING YOU IN ADVANCE!

View 1 Replies View Related

Rookie Questions

Jun 19, 2007

How do I query from a table with a specific field (region, for example) that
I need by feeding in another field (location) from another table. The table
with the region field has the matching locations. The user will input the
departure and destination location and I want it to look up the table with
the regions and display the two different regions in the same query.

Do I write SQL statements or is it possible by using the functions within Access?

Regards,
Jason

View 3 Replies View Related

Another Rookie With A Desgin Question

Jan 31, 2007

Howdy all,

I just started my new analyst job and I've been handed an manually constructed Excel file that I'd like to port to Access. Let me see if I can state my scenario clearly so you can point me in the right direction(s).

There are 3 tables listing the following - monthly temperature, monthly humidity, and monthly dew point. The feilds are a Building header and the 12 months. The records are the ten buildings for which we're collecting data.

My source is a pair of log files -Temp and Humidity - for each building. The kicker is that these log file poll every 15 minutes.

So the plan to date is
1) Import the log files
2) Find the monthly average for each
3) Use these to find the Monthly dew point
4) Build a form to display all of this
5) See if there is a way to turn this into a batch process (and in turn a scheduled task)

After browsing this board I think I've got steps 1 and 2 down. I still need help with the rest though. Can you point me to any examples or post that I haven't seen?

I repost to this with more Q's after the lunch break. :)

Thanks

View 7 Replies View Related

Access Rookie With Issues

Sep 7, 2006

Ok its been a long while since I've set up a date base in access. I run a repair shop and I've set up tables for customers, machines and employees. My issue is when I create my form to enter repairs for each customer the information like address, name, phone number, model.... do seem to be following over to my forms; I'm having to key the information manually each time instead of entering the customer # and having the rest of the customer information populate the additional fields.

Anyone who can help me with this I'll greatly appreciate it, I'm losing sleep over this one.

Thanks in advance for the help.

View 1 Replies View Related

Rookie Multiple Users-Chaning Data

Feb 2, 2007

We are using acces to track and tag all incoming jobs. Since can be used by multiple users I would like a dialog box that would come up at open and tell me the file is currently being used by another user. Excel has that feature. Otherwise we keep using duplicate job numbers. Any help is appreciated.

View 1 Replies View Related

Access Rookie - Calculating Difference Between Dates In Format Mm/dd/yyyy Hh:mm

Jan 24, 2008

Hi, I am a longtime Excel user, and am now migrating some work to Access.

I have 2 fields dealing with dates in the format mm/dd/yyyy hh:mm, OPEN and CLOSE

I'd like to get the difference between the two in hours, but I have no idea how or where to do this in Access. I'm assuming it is put into the queries, but it would be easier if I could just put it in the table.

Here is an example
1/1/2008 1:00 1/2/2008 2:00
I want the result to be "25"

Thanks in advance!

View 9 Replies View Related

Query Date From DateTime - General Date Format Field.

Mar 10, 2006

I have a date and time stamp in a Date/Time field of General Date format (3/1/2006 7:52:25 AM).

I wish to select query on the table's Date/Time field by date portion only (3/1/2006) and not include the time portion (7:52:25 AM) of the field.

Using this expression in the query's criteria - "Between [Enter Start Date: (MM/DD/YY Format)] And [End Date: (MM/DD/YY]" will not return the date ranges as desired without also typing in the full time string.

How can the date integer be parsed out and the query properly expression ed on the criteria field without using VB?

View 7 Replies View Related

Queries :: Date Field With Time - Query For Date Only And Get All Records

Apr 26, 2013

I have a query based on a table which has a date field. the field both in the table and the query have the time also in the date value so when I try to query on a date I get nothing if I copy the date and time from the field I will get the result for that record if I just use the date I get nothing. I have tried the format which does display just date but if you click on the field the time is also there You must be able to query for a date only and get all the records.

View 11 Replies View Related

From And To Date In Two Different Field Of Query

Dec 20, 2005

I have to run a query which has to select data between two date fields. But the problem here is that my table have start date and end date fields. And I have to give a criteria( like the between and ) one from start date and another from end date, but since my start date and end date are on different fields, i cannot do this by using between and . It will be appreciated if you can give help on this

View 1 Replies View Related

Using Query To Formulate A Date Field??

Jun 30, 2005

OK .. bear with me. I am a self-taught Access user (sometimes clueless!) I have a table with member info. Children's birthdate is a field. Children are only eligible for the program until their 3rd birthday. Isn't there a way for the table/query function to figure out 3 years from the birthdate and put the data into a field?

The database already contains all the children birthdates ... can I enter a function that shows i.e., John's birthdate is 7/15/02 ... 7/15/05 is the date he becomes ineligible. If that date is in another column, I can sort all dates out and only view the eligible members.

I know this is probably SIMPLISTIC -- I am having a very hard time. THANX

View 5 Replies View Related

Passing A Date Field To A Query

Apr 9, 2007

Hi All,

I wonder if anyone can help me? I am at the stage now of building a query in design view. Rather than using a dynamic parameter field to capture a range of dates (between...[InputDate] And [InputDate]), I have created a text box in a form and want to pass the contents to my query. I have got this to work providing the variable that is passed is 'text'. I need to pass two dates though. When I put paths to the forms textbox in the 'Between' statement above, it just doesn't return any records. I think Access sees these text boxes as 'text' rather than 'dates'. I don't know how to change it so Access sees these as dates. Any ideas?

View 3 Replies View Related

Forms :: Auto Populate Date Field Based On Another Date Field

May 13, 2014

I am building an Access database for a client. It is an employee staffing database. With that being said they would like the ability to automatically populate the "T2PPCD" date field based on what is entered into the "Report Date" field. (Same table)

The date is the Monday after 180 days from the report date.

I already know how to get it to auto fill 180 days from the "Report Date" but I'm not sure how to tell it to give me the Monday after 180 days.

View 9 Replies View Related

Query Datetime Field And Grouping By Date Only

Aug 28, 2007

I'm losing my mind on this one. Here is my situation... I receive a daily excel sheet with these fields. I would like to import this workfile into access and would like to manipulate it anyway I want. The problem I'm coming into is that I can't collapse/group the datetime field into just the date when I run a query. I would like to be able to run a query on any date range the client registered, a query on any and all the unique dates the client purchased something, all the unique clients, etc. Here is a sample

Sales Name - Sales # - Client Name - Client # - Registered Dt - Purchased Dt
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 18:22 - 8/4/2007 10:21
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 18:22 - 8/5/2007 18:20
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 18:22 - 8/6/2007 10:21
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 18:22 - 8/6/2007 13:28
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 18:22 - 8/6/2007 13:28
Paul, John - 273 - Kelly, Maria - 2252 - 8/7/2007 01:22 - 8/9/2007 05:46

I would like it to show...

Sales Name - Sales # - Client Name - Client # - Registered Dt - Purchased Dt
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 - 8/4/2007
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 - 8/5/2007
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 - 8/6/2007
Paul, John - 273 - Kelly, Maria - 2252 - 8/7/2007 - 8/9/2007

and a different query like ( the purchase date doesn't matter here)...

Sales Name - Sales # - Client Name - Client # - Registered Dt - Purchased Dt
Paul, John - 273 - Kelly, Maria - 2252 - 7/26/2007 - 8/4/2007
Paul, John - 273 - Kelly, Maria - 2252 - 8/7/2007 - 8/9/2007

I read in other places to change the format, input mask, convert, char, etc. but nothing. Please tell me exactly what to do. I don't care if the time changes to midnight or 0:00:00. I will owe you my first born child.

View 6 Replies View Related

Request Assistance With A Query On A Date Field

Feb 22, 2006

I am looking for assistance creating a query on a date field that will go
back three business days from the current date. It must not show inclusive
days, as in yesterday and the day before. Just the 3rd day past and not
counting weekends. Also holidays would need to be considered.
Thanks for any assistance
RW

View 3 Replies View Related

Formating Date Field In Query Grid

Nov 13, 2007

Hey.

How do I format Date field in query grid to make field into "11/11/2007" if the data originally has time, or in form "11 Nov, 2007" ?

View 2 Replies View Related

Query Of A Date/Time Field With Other Criteria

May 13, 2005

I'm trying to setup a query to pull only the records that have the latest date in Time Scanned for each different serial number.

I have a table with 4 fields: Serial Number, Model Number, Location and Time Scanned. Some records will have the same Serial Number repeated with different Model numbers,locations and times scanned.

I can't figure out how to query only the Last Time Scanned for each different Serial Number. I've tried using "Last" for critria on the time scanned field, but I need that for each different serial number.

It's probably easy...but I'm not able to get it. Thanks!

View 2 Replies View Related

Queries :: Calculated Date Field In Query

Sep 10, 2014

I am having a problem with calculating a date field in a query. Prior to this posting I've done some research and made several changes to my query. This only resulted in fixing one problem but then creating another problem. Original problem was I had 2 fields, arrived (23:36) and stemi (0:07). I use the following calculation AT_ST: DateDiff("n",[arrived],[stemi]) which resulted in -1409. So my research showed me I had a problem with the date whenever the time went past midnight and trying to calculate a zero hour number. I changed my calculation to

AT_ST: IIf([stemi]>=#11:59:00 PM#,(DateDiff("n",[arrived],[stemi])),(DateDiff("n",[arrived],[stemi]+1440) Mod 1440))

This works fine and gives me the result of 31 minutes which is what I want, however the problems comes in when I change to this calculation any where there was a negative time now has a 1400+ plus value. Such as arrived (7:37) and 1st_eck (7:18) = 1426 where as before it would report -14 (yes, negatives are acceptable for my reporting because sometimes a call to the hospital is placed before the patient arrives so we want to report on the negative splits). I've tried using a nested IIF to calculate for stemi time being less than arrived time, this didn't work when I tried to use it on the calculated query field. I was wondering if I could write something to check the value of the calculated field if it is greater than 1440 and if yes - subtract 1440 from it. So in the example above 1426-1440 = -14. Is it possible to do this within the query or do I need to do it using VBA

View 14 Replies View Related

Stop Query On Null Value In Date Field

Jan 8, 2015

I have an append query that needs to stop if nothing is entered in the date field. What criteria should I use. Will is stop the query and continue?

View 4 Replies View Related

SQL Statement To Get Only 1 Date For Timestamp Field In Query

Nov 12, 2014

The Timestamp Field I have is formatted like this: 11/4/2014 5:56:46 AM. The field name is [Timestamp] it is in a table named INPUT_RedSheets_Plates. I have a query right now that pulls in certain fields from this table based on criteria of the [Type] field Like This:

Code:
SELECT INPUT_RedSheets_Plates.[Type], INPUT_RedSheets_Plates.[BatchDate],
INPUT_RedSheets_Plates.[BatchNumber], INPUT_RedSheets_Plates.[SampleNumber],
INPUT_RedSheets_Plates.[Compound], INPUT_RedSheets_Plates.[DateRequested],
INPUT_RedSheets_Plates.[RequestedBy], INPUT_RedSheets_Plates.[AcknowledgedBy],

[code]....

View 3 Replies View Related

Modules & VBA :: Date Field To AutoPopulate Other Date Fields To Future Date

Oct 24, 2013

I'm trying to get my "IncidentDate" field to autopopulate two other date fields to a few days from the "IncidentDate". The other two date fields are "ContainDueDate" and "RootDueDate". I'm trying to accomplish this on my "Test CAP Form"

I tried using the following in the BeforeUpdate of "ContainDueDate" and received a complier error: expected =

Code : DateAdd(d,2,[IncidentDate])

so I removed the parenthesis and nothing happened

Code : DateAdd d,2,[IncidentDate]

I even tried redoing it in the AfterUpdate of "IncidentDate" and nothing happened either

Code : DateAdd d,2,[ContainDueDate]

I'm not sure if I'm even using the right function to get what I want.

View 4 Replies View Related

Query Delete Statement - Date Field Problem

Oct 27, 2005

I have created a date field in format of "d/m/yyyy". However, when I perform the Query statement to delete the record, I found that if the day part under 12 the Query statement recognize it as m/d/yyyy, but if the day part over 12 the Query statement can automatic recognize it as d/m/yyyy. I want to know how to overcome this problem. !!!!!!!! :confused:

View 1 Replies View Related

Make Table Query- A Julian Date Field

Dec 8, 2005

I am extracting information from a datawarehouse with a make table query. I will run this queary one time to create the table. Then I plan on creating an append queary to extract the same fields on a weekly basis. I want to keep track of the datasets that i extract weekly. I thought I could create a field with a julian date or the week of the year. Does anyone know how I could create this field in my append queary? OR any thoughts on how i can keep track of the records appended each week?

View 3 Replies View Related

Blank Date Field Default On Query Criteria

Oct 8, 2007

Hello.

I have a query that is pulling data based on a date in a table. For some records, that date field is empty. For those records, the data should be pulled based on the date of 1/1/06. I tried doing this
=IIf([Signed SLA Received] Is Null,1/1/06,>=[Signed SLA Received])

It doesn't like this at all, it brings back no data. I also tried putting 1/1/06 in quotes, but it didn't make any difference.

This is probably a totally incorrect way to get this done, but I don't know how else to try it.

Thanks!
Stacey

View 3 Replies View Related

Change Text To Date/Time Field In A Query

Feb 7, 2008

I have created a table called - "Test"
The properties of the table is listed below

Table Name: Test
Field Name: ADMDAT2 (Text)
DISDAT2 (Text)
Operation Date (Date/Time)

I have written a query to populate a field where the Operation Date is between the ADMDAT2 and DISDAT2

Expr1: IIf([ADMDAT2] Is Null,"",IIf([Operation Date]>=[ADMDAT2] And [Operation Date]<=[DISDAT2],"Match"))

Unfornately it returns and ERROR message... I believe this may be because, the data type of the field, matching a Text with a Date/Time, I have rerun the query using a sample table where all the fields are Date/Time, and it work perfectly.

What i need help with how do i convert a text field into a Date/Time in a query?

So i can place that in the query before i populate the Test table. therefore it all should be date/time

thanks in advance

View 1 Replies View Related

Forms :: Adding Date Field To Query From Form

Sep 23, 2013

I have a date picker field in my form that is used as part of a criteria in a query. I also add it as a result field in the query being that it is appending data to a table. But when the query runs it puts weird characters into the query field with expression.

The Expression is as follows:

BillWk: [Forms]![Invoice Form]![WkEnd]

My Criteria is:
Between [Forms]![Invoice Form]![WkEnd] And [Forms]![Invoice Form]![WkEnd]-6

The Criteria works but the expression does not.

I have attached a png of the field.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved