PC Review


Reply
Thread Tools Rate Thread

Delete Query -- QUESTION

 
 
kealaz
Guest
Posts: n/a
 
      15th Apr 2009
I want to delete from tblBUY those parts that I just cut a purchase order for.

tblBUY does not have P_O_NO because it is before the purchase order is cut.

I want to build a query that filters tblBUYHIST and then take ALL of the
part numbers [PART_NO] on the resulting records and delete all records with
matching part numbers [PART_NO] on tblBUY.

I only want to delete records from tblBUY, not tblBUYHIST.

*************************************************

Here's what I'm trying.


I have created a SELECT Query [qryDeleteBUY_a]

Field: P_O_NO
Table: tblBUYHIST
Criteria: [Enter PO No:] I'm want to change this so that it gets the info
from strCriteria from my form [frmPO_ISSUE].

Field: PART_NO
Table: tblBUYHIST


This isolates the P.O. I enter and is working how I want it to work.



I'm also want to create a DELETE Query [qryDeleteBUY_b]

I think this will work

DELETE tblBUY.PART_NO
FROM tblBUY
WHERE PART_NO IN (SELECT PART_NO FROM qryDeleteBUY_a)


How do I translate that into the required fields in the design view of the
DELETE query?

Field:
Table:
Delete:
Criteria:


*************************************************


Thank you for any help you can provide!!!
 
Reply With Quote
 
 
 
 
Fred
Guest
Posts: n/a
 
      16th Apr 2009
I noticed that nobody answered.

You really need to explain WHAT you are trying to do (defined in terms of
tables, data, records) , not HOW you are trying to do it. Under this
framework, other than one vague sentence, your whole post is about "how"
rather than "what"

The important part of this is a good table structure that supports what you
are trying to do. If you already have that, you'll need to describe "what"
in terms of that table structure and records. If not, you should repost
asking for help on table structure.

Hope that helps a little.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Query -- QUESTION kealaz@starbase74.com Microsoft Access Form Coding 3 15th Apr 2009 01:14 PM
Delete query question =?Utf-8?B?QW5uIFNjaGFycGY=?= Microsoft Access Queries 4 22nd Sep 2006 09:04 PM
Delete Query Question =?Utf-8?B?Qm9iIE11bGxlbg==?= Microsoft Access Queries 2 22nd Mar 2005 11:49 PM
Delete Query Question Keith Johnson Microsoft Access Queries 1 4th Mar 2004 07:23 PM
Question on Delete Query Michael D. McGill Microsoft Access Queries 1 14th Feb 2004 07:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:15 AM.