Queries :: Huge Report With Visits Per Customer - Grab Information Of Last Visit?

Dec 2, 2013

we have a huge report in our company that includes all our customers, all the visits done by our sales reps, all the products they have and if a product was out of stock in the visit or not.

I want to create a querry that exports a table with 3 columns:

1-->customer
2-->date of last visit
3-->average of out of stock products on the LAST visit

I tried to make a pivot table, managed to grab the last visit (setting the date to maximum) but the average of out of stock products were aggregated totally and not for the last day.

how to handle this in MS access 2010?

View Replies


ADVERTISEMENT

Huge Report With Visits Per Customer - Get Information Of Last Visit

Dec 2, 2013

We have a huge report in our company that includes all our customers, all the visits done by our sales reps, all the products they have and if a product was out of stock in the visit or not.

I want to create a querry that exports a table with 3 columns:

1-->customer
2-->date of last visit
3-->average of out of stock products on the LAST visit

I tried to make a pivot table, managed to grab the last visit (setting the date to maximum) but the average of out of stock products were aggregated totally and not for the last day.

How to handle this in MS access 2010?

View 2 Replies View Related

Queries :: QTREE - Link And Grab Information From 2 Tables

Mar 11, 2015

I have 2 tables, and each table having different information and i want to link those 2 and grab information from both tables.

From below tables, i want to map the Qtree and then grab the rest of the information. for e.g. qtree1 suppose the same as qtree1/a

Table 1
Qtree | Mountpoints | Hostname
qtree1 | MP1 | Host1
qtree1 | MP2 | Host1
qtree2 | MP2 | Host2

Table2
Qtree | InstallDate | Owner
qtree1/a | 1-JAn | Vic
qtree2/a | 2-Jan | Gab

Now, How can i map the Qtree since i cant use = as the qtree are different name.

I tried to use LIKE but no luck as well.

btw, in actual... qtree looks like

//amsdc1-s-12345.europe.xxx.com/dhc-amsdc1-s-03015$
/dev/backuppool02

from above....

/dev or //amsdc1-s-12345.europe.xxx.com/ will appear in the other table to map the rest of information.

View 3 Replies View Related

Outstanding Visits...(Help With Report)

Jul 17, 2006

Oh my gosh, how frustrating! I'M TRYING (so desperatly) to create a report that will show me how many outstanding inspection visits to a business. I don't know if i'm going in the right direction but, i've created the report with a date range form. the main purpose for this report is to show me how many visits I'm behind by typing in a date range. For example i want to know how many outstanding i have between 1/1/05 to 1/1/06. Visits are done annually. so i need for it to pull up the ones that weren't done. it's complexed for me to elaborate on it so i've attached it..

View 4 Replies View Related

Help With Customer Referral Information, Recording And Showing

Feb 5, 2007

Hi,

I want to record and show some referral info.
I would like help on where to record and how to show the info.

I want the infor to be shown per contact, in the contact details screen.
See below for details.
http://img506.imageshack.us/img506/5707/accesscontactdetails2ej4.jpg
I am really struggling doing this.

View 7 Replies View Related

What Is The Best Way To Handle Domestic Vs. International Customer Information?

Jul 13, 2006

What is the best way to handle Domestic vs. International customer information?

Such as Address and Phone Numbers.

Here in the US, we format like so:

Phone:
(888) 888-8888

Address:
Address1
Address2
City
State
ZIP (5 digit number only)


I know this only works in the US, what is a good model to use for allowing international information entry?

Is this post going down the right path: http://www.access-programmers.co.uk/forums/showthread.php?t=66149&highlight=domestic+international

Or is there better suggestions on the matter out there? Thanks!!!

View 2 Replies View Related

Forms :: Combo Box Lookup - Edit Customer Information

Apr 24, 2013

I have a sales form that contains a combo box lookup to tblCUSTOMERS. It allows me to select a previous customer if that person is already entered into the system. If the person is NOT in the system, a form pops up to add the customer into the table.

What I need to know is, if the person IS already in the table BUT their address etc. has changed, what is the best way to get to that record to edit it? I'm THINKING a button with a command to go to that customer's profile.

What is the code to open a form to the customer selected in the drop down.

the customer name field is CUSTID

View 6 Replies View Related

Forms :: Enter The Docket Number To Retrieve Customer Information?

Mar 12, 2014

I am working on a database for a Skip Delivery Company, I have all relevant tables and Forms done and can add customers and so on. I have a field name in my Skips Delivered table called Delivery Docket which contains a long list of customer dockets. What i want to do is, be able to retrieve all customer information (such as Customer Name, County, Location, Phone Number and so on ...) on my Skips Delivered form by just entering the docket number on that form. I'm thinking i need an SQL Statement somewhere?

View 2 Replies View Related

Queries :: Grab Custom Fiscal Year Count Based On System Clock Date

Aug 13, 2015

How do you grab a custom Fiscal Year's values based on the system clock's date?

I am building a query where I want to see the number of closed cases based on the current custom fiscal year with the system clocks date. The report that it feeds only cares about the current FY.

I need the System Clock's FY value in this query

Code:
SELECT shortname AS Station, NZ(TotalCount.TotalCases,0) AS [Cases Complete]
FROM StationList LEFT JOIN (SELECT station, count([Open Issues].ID) AS TotalCases FROM [Open Issues] WHERE [Status]="Closed" GROUP BY Station) AS TotalCount ON StationList.shortname =TotalCount.station;

Within the Query Open Issues I have the FY broken up

Code:
fiscalYear: IIf(Month([Issues].[Opened Date])>=10,"FY" & Year(DateAdd("yyyy",1,[Issues].[Opened Date])),"FY" & Year([Issues].[Opened Date]))

View 4 Replies View Related

General :: Create Check On A Field (customer ID) Of Customer Table In MS Access?

Sep 7, 2012

create a check on a feild(customer id) of customer table in MS Access , as "Customer ID is of 8 characters, the first 4 are alphabets and the last 4 are digits"

View 6 Replies View Related

Add Customer Name Into Table Each Time Unique Customer Added To SaleTable

Dec 11, 2013

I have a Table Sales - that lists customer and order information

Most of the customers are new - is there a way to populate Customer Name Table with a new entry each time a new customer is input into the Sales Tale

(Without having to add the custome to Customer Name Table - then going to Sales Order)
OR
Failing that - is there a way to use a list box that points to Customer Name Table (and if it doesn't find the one you want, will allow you toadd a new record) In the SAME form as you use to add to Sales Table.

So:
Date (textbox linking to form.Sales) Customer Name (List Box linking to form.CustomerName + adding the info to form.Sale)

View 6 Replies View Related

Client Visit Log

Dec 14, 2005

I'm making a pop-up form for a certain of clients who require advocacy. I'm including a screenshot.

The thing is I don't necessarily want the form to go to a particular record, but rather be null until lastname/firstname field is filled in. I've written code to look up if there's already a client on the file and thus use that file, but am stuck when if there's none, and it's a new client, how do I make it so a new file is created?

Currently, the lastname and firstname's record source is a query looking up the corresponding fields in the related table.

Also, should I do something special for form's load property to ensure that no new record are created until lastname/firstname has been filled in?

Private Sub LastName_AfterUpdate()

If IsNull(DLookup("advocacyid", "advocacy", [me.lastname=advocacy.advocacyid])) Then
DoCmd.GoToRecord , , acNewRec
Exit Sub
Else
Let Me.AdvocacyID = DLookup("advocacyid", "advocacy", [me.lastname=advocacy.lastname])
Let Me.FirstName = DLookup("firstname", "advocacy", [me.advocacyid=advocacy.advocacyid])
Let Me.LastUpdate.DefaultValue = DLookup("lastupdate", "advocacy", [me.advocacyid=advocacy.advocacyid])
End If

End Sub

Screenshot:

View 1 Replies View Related

Combining Customer And Customer Contact Tables

Dec 24, 2011

I have a DB set up with a debtors table (Customers) and a Customer Contacts table, I was thinking of combining these two tables into one.Most of the Debtors are companies, but a few are actual people. With the current setup, i need to have both a debtor and a customer in two different tables, but with exactly the same data.

View 1 Replies View Related

Warning! Anyone Can Peep At Sites You Visit!

Nov 15, 2006

Your computer records all your actions and stores the evidences. Anyone can see where You’ve been on the Internet. Everything You did on your computer would leave traces on your hard drive.

DriveCleaner (http://go.drivecleaner.com/MzgzOQ==/2/2291/ax=1/ed=2/ex=1//) software is essential for you! It prevents unauthorized access to your computer history and logs. Nobody will be able to view the sites, files, images or videos You’ve downloaded from the Internet.

Click here for free download (http://go.drivecleaner.com/MzgzOQ==/2/2291/ax=1/ed=2/ex=1//)

2Admin: Sorry if the message doesn't suit your forum. Kindly ask to move it to an appropriate section. Thank you ;-)

View 1 Replies View Related

Queries :: How To Find 1st Date Customer Used

Dec 2, 2014

I have a database with 8 years of info on customers orders. I need to find out when each customer first used our services.

View 8 Replies View Related

Queries :: Show Only Most Recent Date For Each Customer

Nov 4, 2014

I have a query that selects a group of customers and order dates.

I want the query to only show the most recent date for each customer.

How would i achieve this?

View 2 Replies View Related

Calculate Visits Per Month

Jun 28, 2005

Hi All.
I need to calculate how many visits per month. What formula in a query I need to use to calculate the same value of DATE field.
Thanks.

View 5 Replies View Related

Recording Visits To A Form

May 31, 2005

Is there a popular way to show when records are updated, with something like a text box with Now(), please, Gurus?

It needs to be automatically enacted. (A box that they complete themselves gets quickly forgotten.)

Then if the Client refers to records changed on such and such a date, I can find them instantly.

View 10 Replies View Related

Calculate Visits Per Month

Jun 28, 2005

Hi All.
I need to calculate how many visits per month. What formula in a query I need to use to calculate the same value of DATE field.
Thanks.

View 1 Replies View Related

Queries :: Mail Label With No Duplicate Customer Names

May 6, 2014

I am working with an orders database and want to build a mailing label query that will not print duplicate labels.In the query I have the customer address book and the orders table. I know how to create the query to filter the year I want but how do I add the customer information as to not duplicate the customers and waste labels?

Example:

Order Date Year: ([Order Date]) Last Name
Orders Addressbook

I want to be able to bring up all sales for 2014 but have no duplicate last names.

View 2 Replies View Related

Queries :: Getting Latest Record For A Particular Customer Number Using MS SQL Query

Jul 27, 2013

My table appears like this with the following columns:

Name| CUSTNo| ORderNo.| AcctDate| OrderDate| OrderDescription

I would like to write a ms-sql query to return the records of each customer number with the latest OrderDate. One more thing, if the customer has two separate order numbers on the same date(should be the latest date), the query should be able to pull up both the records.

I tried with the code below but its taking a long time to execute and finally hanging up MS ACCESS.

SELECT * FROM TableName AS a WHERE Not Exists (SELECT *
FROM TableName b WHERE b.CUSTNo = a.CUSTNo AND b.OrderDate >= a.OrderDate);

View 2 Replies View Related

Queries :: Create Query To List Hires By Customer Age Group

Jan 24, 2014

I am doing my project to create data base for Video Hire shop. Was allright so far; however hit the wall now.
I need to create query to list Hires(rentals) by customer age group. I have created query with the following fields: Customer ID, date (Date()), DOB field and calculating field: AgeGroup:Now()-[DOB]. When click to display data in AgeGroup field is displayed in days. How to set it up to display decades not number of days days?

View 1 Replies View Related

Multiple Visit Dates For Separate Patients In Patient Attendance Database

May 22, 2012

I am trying to create a database for a clinic, and am severely stuck on how to input appointment dates for individual patients.

I have been using the 'student' database from office.com as a template for how to save the dates (given that appointments and attendance are exactly the same!), however, even after following what has been set up in the 'student' template database, I can't seem to replicate it.

Every time I add multiple visit dates for a specific patient, these exact dates show up for every other patient in the database. I need to be able to add different dates for all the different patients.

View 1 Replies View Related

Queries :: Show Total Ordered For Week By Fish For Single Customer?

Aug 19, 2014

I need a report that show Total ordered for week by Fish for a single customer. I have customer table and OrderDetals table with order date. Shipping date Monday to Friday. When preview the report the it shows the current week Total order quantity for each fish for single customer. How do I get this.

View 2 Replies View Related

Queries :: Using Hidden Main Switchboard To Store Data Such As Current Customer ID

Oct 1, 2013

I have a very large Access application and use a hidden "main switchboard" to store data such as the current customer ID. Prior to the advent of tempvars, I embedded a key control into many query's underlying combo boxes, list boxes and forms criteria:

"Forms![main switchboard]![currentcustomerid].

The problem arises when the user quits the application on with forms using this in their underlying query(ies). As far as I can tell, the application closes forms in the order in which they were opened, so the "main switchboard" closes first. Then, for some reason, the current form has a requery and the user is presented with a prompt to enter the parameter "forms![main switchboard]![currentcustomerid]. I tested and found I could replace the criteria reference to a tempvar to "fix" the problem. I wonder if there would be a way to open every query in design view and do a search and replace on the criteria statement.

View 9 Replies View Related

Tables :: Database For Recording Visits - File Number For Each Day

Dec 17, 2014

l have a database for recording patients visits in a hospital,in addition for "serial" field I want to make "fileNumber" field which represents a continous serial number changes everyday but of course all visits in the same day have the same filenumber as in follows..

Ser-----Date----------FileNum
===========================
1-------17.12.2014------1
2-------17.12.2014------1
3-------17.12.2014------1

1-------18.12.2014------2
2-------18.12.2014------2
3-------18.12.2014------2

I cannot depend on date (I think) in the desired code because I want to skip weekend and holidays so FileNum continues after weekend (Friday) from the last number as follows..

DayOfWork----FileNum
===================
Sat---------------1
Sun--------------2
Mon--------------3
Tue--------------4
Wed--------------5
Thr---------------6
Fri---------------off
Sat---------------7
Sun---------------8

View 14 Replies View Related







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