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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help on access 2003 query



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2007, 01:15 AM posted to microsoft.public.access.gettingstarted
Sammy
external usenet poster
 
Posts: 123
Default Help on access 2003 query


I have this table:

ITEMS
ITEM ASSY PAINT SHIP
Chair A001 P001 S001
Table A002 P002 S002
Bed A003 P003 S003


Then I have a form and I capture the fallowing data

DEPARTMENT
DATE
ITEM
UNITS


I need one query that give me this data.
QUERY 1
ITEM UNITS DEPT OPER
Chair 2 ASSY A001
Chair 3 PAINT P001
Bed 4 ASSY A003
Bed 3 PAINT P003
Table 2 SHIP S002
Table 1 ASSY A002

So this means that each item may have a different
operation base on the department.

and there's where I need help.

I will preciated any help the more detail the better since I'm just start
using access.

Thanks.

  #2  
Old October 26th, 2007, 03:38 AM posted to microsoft.public.access.gettingstarted
J_Goddard via AccessMonster.com
external usenet poster
 
Posts: 221
Default Help on access 2003 query

Hi -

I think your ITEMS table needs to be restructured. Assuming that Assy, Paint
and Ship are departments, and A001, P001 etc are OPER's, then it should be
something like this:

ITEMS
ITEM DEPT OPER
Chair ASSY A001
Chair PAINT P001
Chair SHIP S001
Table ASSY A002
...

And that is not really an items table, either, because it has a compound
Primary Key ( ITEMS+DEPT)

From what you have shown, you need at least four tables:

ITEMS
DEPT
ITEM_DEPT (That's the one above)
ITEMS_RECEIVED (or whatever it is you form is getting)

What table does the form have as its recordsource? Without another table, you
cannot have a query that will do what you need.

John



sammy wrote:
I have this table:

ITEMS
ITEM ASSY PAINT SHIP
Chair A001 P001 S001
Table A002 P002 S002
Bed A003 P003 S003

Then I have a form and I capture the fallowing data

DEPARTMENT
DATE
ITEM
UNITS

I need one query that give me this data.
QUERY 1
ITEM UNITS DEPT OPER
Chair 2 ASSY A001
Chair 3 PAINT P001
Bed 4 ASSY A003
Bed 3 PAINT P003
Table 2 SHIP S002
Table 1 ASSY A002

So this means that each item may have a different
operation base on the department.

and there's where I need help.

I will preciated any help the more detail the better since I'm just start
using access.

Thanks.


--
Message posted via http://www.accessmonster.com

  #3  
Old October 27th, 2007, 01:26 AM posted to microsoft.public.access.gettingstarted
Sammy
external usenet poster
 
Posts: 123
Default Help on access 2003 query

Hi

I need to use only one item number and this item number will have a
different operation numbers because this same item number will be used by
diferent departments.

I do have another table in this table I have the fallowing fields

DEPT
DATE
OPER
UNIT

This table will be populated from the form and when he enters the department
and item number the program assigs the correct operation.

I hope I did't confuse you more, my english it's not that good but I do have
a better spanish

Thanks for all your help.





"J_Goddard via AccessMonster.com" wrote:

Hi -

I think your ITEMS table needs to be restructured. Assuming that Assy, Paint
and Ship are departments, and A001, P001 etc are OPER's, then it should be
something like this:

ITEMS
ITEM DEPT OPER
Chair ASSY A001
Chair PAINT P001
Chair SHIP S001
Table ASSY A002
...

And that is not really an items table, either, because it has a compound
Primary Key ( ITEMS+DEPT)

From what you have shown, you need at least four tables:

ITEMS
DEPT
ITEM_DEPT (That's the one above)
ITEMS_RECEIVED (or whatever it is you form is getting)

What table does the form have as its recordsource? Without another table, you
cannot have a query that will do what you need.

John



sammy wrote:
I have this table:

ITEMS
ITEM ASSY PAINT SHIP
Chair A001 P001 S001
Table A002 P002 S002
Bed A003 P003 S003

Then I have a form and I capture the fallowing data

DEPARTMENT
DATE
ITEM
UNITS

I need one query that give me this data.
QUERY 1
ITEM UNITS DEPT OPER
Chair 2 ASSY A001
Chair 3 PAINT P001
Bed 4 ASSY A003
Bed 3 PAINT P003
Table 2 SHIP S002
Table 1 ASSY A002

So this means that each item may have a different
operation base on the department.

and there's where I need help.

I will preciated any help the more detail the better since I'm just start
using access.

Thanks.


--
Message posted via http://www.accessmonster.com


 




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 08:16 PM.


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