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

Lost record question

I have a very simple database. It tracks service calls. It has fields
for two technicians; Tech1 and Tech2. It captures their hours against
a labor category (electrical, plumbing, carpentry, etc.) I created a
query to summarize the hours for each techncian by pay period. It
works great. When I merely add a linked database to the query design
screen, without any other changes to the query, I lose several records
(23 of 126, for instance). The second table simply links a 2-letter
code for each labor category to simplify passing the accounting
information. What happened? I cannot sort this apparently simple one
out. Thanks for any help you can offer.
Nov 12 '05 #1
2 1497
Corky previously wrote:
I have a very simple database. It tracks service calls. It has fields
for two technicians; Tech1 and Tech2. It captures their hours against
a labor category (electrical, plumbing, carpentry, etc.) I created a
query to summarize the hours for each techncian by pay period. It
works great. When I merely add a linked database to the query design
screen, without any other changes to the query, I lose several records
(23 of 126, for instance). The second table simply links a 2-letter
code for each labor category to simplify passing the accounting
information. What happened? I cannot sort this apparently simple one
out. Thanks for any help you can offer.

The conclusion I would draw from this is that you have some records which
have an invalid labor category. These records don't find a match on your
newly added table. By default Access queries require data from both
tables to exist before including the record in the dynaset.
To change this behaviour, right-click the join line in the query grid and
select 'Join Type'.
Change the type so it selects 'All from ' your original table.

If you include fields from your second table in the query output it will
be obvious which categories do not exist in the second table.

Regards

Peter Russell
Nov 12 '05 #2
ru***@127.0.0.1 (Peter Russell) wrote in message news:<me**********************@russellscott.btinte rnet.com>...
Corky previously wrote:
I have a very simple database. It tracks service calls. It has fields
for two technicians; Tech1 and Tech2. It captures their hours against
a labor category (electrical, plumbing, carpentry, etc.) I created a
query to summarize the hours for each techncian by pay period. It
works great. When I merely add a linked database to the query design
screen, without any other changes to the query, I lose several records
(23 of 126, for instance). The second table simply links a 2-letter
code for each labor category to simplify passing the accounting
information. What happened? I cannot sort this apparently simple one
out. Thanks for any help you can offer.

The conclusion I would draw from this is that you have some records which
have an invalid labor category. These records don't find a match on your
newly added table. By default Access queries require data from both
tables to exist before including the record in the dynaset.
To change this behaviour, right-click the join line in the query grid and
select 'Join Type'.
Change the type so it selects 'All from ' your original table.

If you include fields from your second table in the query output it will
be obvious which categories do not exist in the second table.

Regards

Peter Russell


Peter,
Thank you very much. Your advice made the query work. I am stilled
challenged as to why the records were not visible in the first place.
I have gone back and re-entered the data, checked for extra spaces and
so forth; the data looks valid, but the records still do not appear,
even on a simple select query. I had to add a couple extra fields to
the table to work around the query problem.
Thanks again for your prompt and pertinent reply.

Corky Corcoran
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
3
by: Ed Chiu | last post by:
Hi, I plan to use panel to store multiple HTML text in a web form page, here is the code snippet that add HTML into panel: Dim lit1 As New Literal lit1.Text = strHTML...
14
by: Ron L | last post by:
All I am working with a DataGrid and a form consisting of a number of text, checkbox, combobox controls, all bound to the same datatable. When I click on my "New" button, I create a new row,...
2
by: Dennis Breithaupt | last post by:
Hy all, I request your support for the following problem. (with "postmaster (PostgreSQL) 7.4.1") On a development-system I lost the pg_xlog-directory due to a system crash, where the physical...
2
by: Andrew Sukow | last post by:
Greetings, Our postgres system crashed and upon restarting it our database had the following errors. The error log was 4.5 gigs which is much larger than usual. We looked online for information...
2
by: Maks Romih | last post by:
I'm not experienced in db2, but I have to write some rather complex processing with stored procedures for db2 on as400. The database consists of some twenty tables and is prepared in advance so...
0
by: BerkshireGuy | last post by:
Has anyone come across a Lost and Found database to track a hotel's lost and found items? I would be curious to review a system of such. I've created one myself and have a question regarding...
2
by: Len Robichaud | last post by:
I wrote the code below to be called by a button on an open form (that has a subform) when we need to create a new (Ghost) record using some of the fields from the existing (current) record. The...
3
by: Vic Spainhower | last post by:
Hello, I have an HTML table that is being constructed from a MySQL table and displays a form that includes a check box on 1 of the fields on the form for each record. I have included in this PHP...
2
by: tatum | last post by:
I really just need some pointers... jumping points from here... something the problem: Write a grading program for a class with the following grading policies: 1. There are two quizzes,...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.