Identify Problem Records

Aug 16, 2005

Hi

i have a query that takes fields from various related tables to give me the information that i want

The primary table has 199955 records

The query displays only 199939

16 recordss are missing

I know why this is: the primary table (CWT reqd equip) has a field on it that is a primary key on another table (cwt Equip). On "CWT reqd equip" 16 records must have an entry in this field that is not present on the table where the entry is a primary key (cwt Equip).

I dont know how to identify what these 16 records are on the primary table. I want to get rid of them so i can enforce referential integrity between the two tables.

can anyone help? Have i wrote this clear enough?

thanks


p.s i've attached a doc showing how the query is built. the other tables other than the two i mentioned aren't important, for this.

View Replies


ADVERTISEMENT

Queries :: Identify Subsequent Records Where Original Record Meets A Criteria

Aug 8, 2014

I have a table [PickData] in a WMS (Warehouse Management System) database, that records details of each item picked. The key fields are;

[Movement] - a unique ID for a collection of items to be picked.
[ToAssignRef] - the order ID
[Product] - the product!
[Picked] - the date/time the item was scanned
[Pick Actioned] - the date/time the [ToAssignRef] was completed
[Reason] - A code to indicate why an item could not be picked - AKA F3'd

An operative would be allocated a movement, connected to the [ToAssign Ref], containing a number of products to pick. If an item can not be picked for some reason the operative presses F3 and selects a reason (no stock, damaged etc). These F3'd items (other stock allowing) will later be picked on a different [Movement]. I need a query to identify the subsequent [Movements] and the associated fields following the occurance of an F3'd [ToAssignRef] & [Product].

I have a query, but it runs very slowly (perhaps due to the DB size currently 780K records). Is this the right approach, is there a better (faster) way to do this?

Code:
SELECT PickData.ToAssignRef, PickData.Product, PickData.Picked
FROM PickData
GROUP BY PickData.ToAssignRef, PickData.Product, PickData.Picked
HAVING (((DCount("[Movement]","[PickData]","([ToAssignRef]='" & [ToAssignRef] & "') AND ([Product]='" & [Product] & "')"))<>0));

View 2 Replies View Related

Modules & VBA :: Identify Strings Into 2nd Table Records Then Update 1st Table

May 5, 2015

MS Access 2013: I have two database tables as below:

tbl1_MainDB --- It has a field named as "City" where I get huge data for some city names. Sometimes This field may have some unknown/new names which are not listed in our 2nd table ("tbl2_RefrDB")

tbl2_RefrDB --- It's a reference table which has raw names for cities, and then standard names of their city and state in another fields.

Target --- I want to create a VBA prorgram (Sql query) which can look from tbl1_MainDB.[City] to tbl2_RefrDB.[Raw_City] field, and if found then pick the "Standard_State" and "Standard_City" record values from there, and update into the 1st table "tbl1_MainDB".

...if not found in "tbl2_RefrDB" table, then user can be informed & ask for updating the new/unmatched city record as a new record in this table.

Attached sample database for more details.

View 4 Replies View Related

Queries :: Identify Missing Records Between Queries

Jul 14, 2015

I have a query that will draw down student details who have completed a course in a given month (May for example), i would like to use this data to identify those learners who are not enrolled on a course in the next Month (June for example). There is no field that denotes whether a student has left only that a course assosciated with their ID has a completion date within that Month. There are approx 250 records.

In my head it should work something like this

1) Identify all learners who finsihed a course in May (Identify learner ID, must have a course end date in that month)

2)Cross reference these against all those who started a course in June and identify the students that have completed in May but did not start a course in June.

Is it possible to store all those who completed (May) in a table/query and cross reference those who started in June and identify of the May completions who did not start in June?

View 3 Replies View Related

How To Identify A Charector

Jun 2, 2006

Hi all
I have field Name called EMPNAME

The records like this,

Brian,Smith
Ray,Vernner
Ken,Ibrahim

Now I want to separete them as Firstname: Brain
How do I find the comma "," in a text?


thanks


:confused:

View 5 Replies View Related

How Do I Identify This Error?

Dec 10, 2004

I have a control (command button) on a form that opens up a report which filters out a single record. The filter is based upon a value in a text box located on the form. Within the VB code, I put some code to prevent the form from opening if the text box had no data in it.

When i click on the button (assuming the text box has a value in it), I get the error message I defined, and the report opens properly. This tells me there is an error being generated.

My question is, how I determine what error has been generated? And how do I fix it?

Here is the code I used:

//This is the code for the form.
Private Sub cmdButtonPreviewLabel_Click()

On Error GoTo Form_Closure_Error2
DoCmd.OpenReport "reportLabels", acViewPreview

Form_Closure_Error2:
MsgBox "Sorry, but I cannot print a label without a Job Number.", vbOKOnly, "Notice"
Exit Sub


//This is the code for the report
Private Sub Report_Open(Cancel As Integer)

On Error GoTo Form_Closure_Error1

tempvalue1 = Forms![frmjoblog].[JobNumber]
Me.Filter = "[tableJobLog].[JobNumber]= " & tempvalue1
Me.FilterOn = True

Form_Closure_Error1:
Exit Sub

End Sub

End Sub

View 1 Replies View Related

Identify Unused Tables

Jan 13, 2006

Is there a way to query any system tables to list all tables that are being referenced in any queries, forms, reports, modules, etc.? We've inherited a rather large Access application containing some tables that we suspect aren't being used at all by the application, and we'd like to verify this suspicion before deleting these tables.

TIA

View 2 Replies View Related

How To Identify The Repeat Data?

Aug 28, 2005

Hi there,

I need to sort out the repeat customer, e.g. I have a list of customer's name, like Nike, Emerson, Alcan, etc... and if they sign another contract with my company again this year, I will name it like Nike 05, Emerson 05, etc...

So how can I get the result of how many customers have signed the 2nd contract with us. I have no clue now... :confused:

Anyone can give me some hint please! :)

Nadine

View 1 Replies View Related

Identify Oldest Inventory

Oct 11, 2006

I am trying to identify how long inventory has been in a specific location. The information that I have is the current inventory level and movements that have put the inventory there. Assuming FIFO I would like figure out the following.

ex: I have 4 movements with various dates AND I have 3 pieces currently on hand, how do identify the date of the last 3 movements (assuming that the one that has been moved out was the first one in)? Of course there is a long list of part #'s, on hand quantities and movements into the location so the logic should work for all.

Sample data

Part # Date Quantity
123 09/30/1999 1
123 09/01/1999 1
123 08/30/1999 1
123 07/30/1999 1
456 09/30/1999 1
456 09/01/1999 1


Part # On Hand
123 3
456 1

the Result I would like to see:
123 09/30/1999 1
123 09/01/1999 1
123 08/30/1999 1
456 09/30/1999 1

Is there a way to do this?

Thanks
Pat

View 3 Replies View Related

How To Identify WEEK Number

Feb 8, 2007

hi

i am in a situvation that i have to identify the dates which comes under particular week1 or 14.

View 3 Replies View Related

Identify And Assign Value To Minimum?

Oct 29, 2012

What I am doing is trying to have access identify and label various lanes of transit.

So, for example. I have the below...

Origin Destination Via Transit Time
Hong Kong New York East Coast 38
Hong Kong New York West Coast 32
China New York East Coast 34
China New York West Coast 29

Is there a way in Access to have it identify that Hong Kong to NY via West Coast is the "DEFAULT" where HKG to NY via East Coast would be "ALTERNATE" ?? And then do the same for the next origin? The table I have now has over 71 different origins but I need it look at each origin independently.

View 2 Replies View Related

Identify Differences Between Table And Spreadsheet

Dec 19, 2006

Here is the problem

I have a tblOrders that has 1800 records with 31 fields primary key tblOrder which is a number.

Periodically users export data from SAP into a spreadsheet, which are changes to the original data but may not contain the exact same fields as the master tblOrders. The data in this spread sheet identifies changes and may contain aprox half of the fields that are contained in the master tblOrders. The field names however (in the spreadsheet) will be of the same type as in tblOrders.

What I would like to do is identify differences between the tblOrders records and the records in the spreadsheet, and then update the tblOrders to show the changes.

how would you proceed? Maybe create a new table by importing the excel spreadsheet into access and then somehow querying the differences and updating the master. If anyone has done anything like this b4 please could you update me...

Cheers in advance.

View 3 Replies View Related

Same Criteria For Querying Two Nearly Identify Tables

Dec 22, 2005

I have two tables, which have same fields. The tables are used for keeping record of news clippings, that are clipped in two different offices. I understand that the best way to manage the database will be combining them into the same table. Yet, it's not an option for the time for some technical reasons. Each table has the same fields as follow:

Input date
issue date
headline in English
news source
category

I want to have a list of news clips from the two tables by a specific category. I will have a form, that allows user to select category as the criteria to query the two tables. I manage to do that in a single table, but how to do it for two tables. This will be very help if you can help. ideally, I can use category to query news clips as well as academic journal clips (from another table) table.

Thanks.

View 2 Replies View Related

Identify Any Changes Made To Query Criteria ?

May 10, 2007

Hello,

I was wondering if there is anyway to be able to identify or monitor changes made to a query.

Basically looking to identify if anyone goes in and manipulates the criteria field within the query ?

Using Access 2003.

Any thoughts or help are greatly appreciated.

Thanks

View 2 Replies View Related

Modules & VBA :: Identify Image Control Name?

Nov 8, 2013

I have a global function which I have hooked onto the onClick event of controls. Currently I am using commandButtons as my control of choice. In my function I can then reference Forms.ActiveControl which is no problem.

However, for lots of reasons I really need to use Image controls. Now, my problem. Image Controls have an Onclick Event, but they do not get focus so the Forms.ActiveControl will not work.

How can I identify the image control that has generated the click event if the control itself does not get focus and so cannot be referenced by ActiveControl? Working on a possibly work around, but could do with the best brains in Access on the case!

View 3 Replies View Related

Queries :: Identify Duplicates With Three Criteria

Apr 5, 2013

I have the following columns in my table 'Catalogue'.

Contract_contractitem
contract
Supplier name
Item number
Short description
Long description

I need to identify duplicates if the short desciption is the same, long desciption is the same but the item number is NOT the same.

e.g.

4700000551_978, 4700000551, FISHER SCIENTIFIC BIOTECH LINE ApS, mbp-6014, 0,2 ml PCR Tube, Hotstart, wax bead, NS, 0,2 ml PCR Tube, Hotstart, wax bead, NS 96 tubes/pack, 10 packs/Cs

4700000551_977, 4700000551, FISHER SCIENTIFIC BIOTECH LINE ApS, mbp-6010, 0,2 ml PCR Tube, Hotstart, wax bead, NS, 0,2 ml PCR Tube, Hotstart, wax bead, NS 96 tubes/pack, 10 packs/Cs

View 4 Replies View Related

Queries :: Formula Identify Differences

May 22, 2014

Basically I would like to populate column three "OUTCOME" according to the following logic:

if train A10 has multiple destinations (we see this in the second column) then in outcome I woudl like to have "multiple destinations" if the destination is only one (in case of trains A15 and A16) , then I would like to have that city in column 3 "OUTCOME".

View 3 Replies View Related

Identify Changes In Data Between Consecutive Rows?

Jul 19, 2015

I have data for multiple account numbers (for work) and dates, and I need to identify when there is a change in account number in order to add a new field with a count - which counts sequentially starting with 1 and then starts over at 1 when the account number changes.

Ex. The red column is what I am trying to create

Account Date_To Counter
12345 06/30/2015 1
12345 05/31/2015 2
12345 04/30/2015 3
19999 06/30/2015 1

View 2 Replies View Related

Forms :: Identify RECORD BY Number And Year

Apr 14, 2013

I have a form linked to table tblINCIDENTS. When I create a new incident, I select DATE_LOGGED in a text box. This updates the field in tblINCIDENTS.

I would like to show on the form (and store in the table), e.g.

"Record 5 in Year 2013"

I already had the new record number as an autonumber, but now I created 2 extra fields in the table - recordno and year.

I have a hidden text box which, on DATE_LOGGED.CHANGE, finds the Year() from DATE_LOGGED. I have tried using a Query to find the MAX RECORDNO of YEAR. I managed to display the Max (having manually populated the fields!) in a textbox, but am now going round in circles!

View 14 Replies View Related

Modules & VBA :: Identify Users With Database Open

May 1, 2014

I'm wondering if there's any way to find out who has a database open.

I've saved the file as an ACCDE for the users and kept the ACCDB file as my working file. Whenever I make changes to the db I need to save a new ACCDE file on top of the existing one. In order to do that, I need to ensure no one has the db open. Half the time I need to track down 1 of 15 people to find out who it is that has it open so I can kick them out and save.

I don't have any login features, but could use the POD # that each cubicle has associated to their computer if Access allows that...

View 8 Replies View Related

Forms :: Any Way To Identify Top Row In A Continuous View Form?

Apr 13, 2015

Is there any way to identify the Top row in a continuous view form?This changes of course as you scroll down. What I'm thinking of doing is a page jump page forward, or back. The form is based on a query and has a line number field, but I can't figure outhow to get at it in code.

View 4 Replies View Related

General :: Program That Can Identify A Entry In Field

Aug 2, 2012

I have made a program that can identify a entry in a field (ID) and change the quantity of a field. However, if can only identify numbers. I have the code as follows:

Code:
Option Compare Database

Sub AddToInventory()
Dim tb As DAO.Recordset
Dim I As Integer
I = 1
Do Until I = 2
On Error GoTo Canceled

[code]...

The "where ID2 = " only works with numbers. Is there anyway I can make this work with Strings? Basically, Find the string in a column and update the quantity.

View 14 Replies View Related

How To Identify Which Record In Continuous Form Was Clicked On

Nov 6, 2011

I have a continuous form with an image and a text box on it. When the image is clicked, some text should appear in a text box. The problem is that the text appears in the text box of the incorrect record.

Suppose the first record is the 'current' record (i.e., having the record selector to its left), and the user clicks on the image in the third record. Then the text appears in the first record, not the third.

Is there a way to find out which of the records was clicked on? Or, can I change the current record to be the one whose image was clicked on?

View 13 Replies View Related

Unique Number To Identify Each New Record Created

Sep 23, 2011

Example 1:

2011-1
.......
2011-3893 etc.

Currently I have an Access form which produces a new unique number to identify each new record created. To do this I use the unique ID autonumber from a table to identify the new records. I would like to change from this simple number to the the above format per example 1. The four digits to the left of the hyphen would always be the current year and digits to the right of the hyphen would be the unique auto incrementing numbers such as from my table. I need the year to auto increment by 1 each September 30th (new business year) and I need the numbers to the right to auto reset to 1 to start uniquely identifying records again for the new incremented year. As each record is closed I need the number to be written as a single entity in the new format to my database.

Example 2: After September 30th.

2012-1
.......
2012-447 etc.

View 3 Replies View Related

Modules & VBA :: DBA Code - Identify If 2 Fields Within A Table Have Been Populated

Sep 25, 2014

trying to identify if 2 fields within a table have been populated i.e.

Check date field and restaurant field, if these fields have been populated do

this

errStr = errStr & tmpDate & ", "
Else
validStr = validStr & tmpDate & ", "

[Code]...

View 14 Replies View Related

Queries :: DLookUp To Identify Base Cost Of Show

Feb 5, 2015

I have a table that holds information for a type of show and the base cost of the show. I am trying to make a query that gathers information for all the shows in the table and uses the Dlookup function to identify the base cost of that show. This will in turn be used in the same query to create a quote, but I can not get the Dlookup function to work and I am sure that I may be doing it very wrong.

The table is called ShowList. That table contains 3 fields, ID, Show Type, and Cost.

The query is called Venue Cost and will have a series of fields that work to develop some math on all items from another table called Venue Info. Venue Info uses ShowList to select the type of show.

What I want the query to do is look up the Show type from VenueInfo and then look up the base cost of the show type from ShowList. What I have been using is not working but is as follows:

DLookUp("Cost","ShowList","[Cost] =" & "[Venue Cost]![Venue Type]")

View 4 Replies View Related







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