A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Locating specific Information



 
 
Thread Tools Display Modes
  #11  
Old January 7th, 2009, 07:59 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default Locating specific Information

I just noticed that you already have the "AssetLocationUpdates" table except
that you just type in the location text rather then drawing from a list.
  #12  
Old January 9th, 2009, 08:14 AM posted to microsoft.public.access.tablesdbdesign
Mal.com[_2_]
external usenet poster
 
Posts: 4
Default Locating specific Information

Thank you to all those who replied with advice. I really appreciate all the
help each and every one of you have given me. It worked!!! Yah!!!! At last,
I can finally get the information out that I have been after for ages. So
once again a big Thanks!, Mal.com




"Michael Gramelspacher" wrote:

On Mon, 5 Jan 2009 19:06:00 -0800, Mal.com wrote:

I am using Access 2003

The tables are structured as follows:

The first table is called Assets and has four fields,
1, Asset ID (Primary Key)
2, Asset Description (Text)
3, Make (Text)
4, Model (Text)
and a total of 519 ID records

The second table is called Weekly Register and has four fields
1, Auto Primary Key
2, Asset ID (Text)
3, Location (Text)
4, Weekending (Date/Time)

I enter into the second table each week the assets and their location and
that tells me where all the assets are that have been recorded but i would
like to create a Query on the assets that have not been recorded for that week

Thanks!

"John W. Vinson" wrote:

On Mon, 5 Jan 2009 16:35:00 -0800, Mal.com
wrote:

I am setting up an Asset Tracking database that will need to track the assets
weekly. The assets move around to different locations during the week. I am
having trouble with being able to Querie the assets and locations that have
not been entered for the week. Any help, suggestions or advise would be
greatfuly appreciated. Thanks.

We'll be glad to help if you give us some information about how your tables
are structured. I'm guessing that a NOT EXISTS clause can be used to find
things "that have not been entered" but without knowing anything about your
tables, it's hard to say.
--

John W. Vinson [MVP]


Probably like this, but the actual date here would be a parameter.

You should have a UNIQUE index on AssetID and WeekEnding in you WeeklyRegister table.

SELECT Assets.AssetID,
Assets.AssetDescription,
Assets.Make,
Assets.Model
FROM Assets
WHERE NOT EXISTS (SELECT *
FROM WeeklyRegister
WHERE Weekending =# 1 / 2 / 2009 #
AND WeeklyRegister.AssetID = Assets.AssetID);

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.