🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.databases.ms-access
Article #78

Re: How to create a form to delete specific record from table?

#78
From: Kipp Woodard
Date: Thu, 24 Jul 1997 00:00
54 lines
2494 bytes
You need the form, with the button and the text box to hold the key value. 
I would use a combo-box and use a summary query to list all unique values
of OrderID from the Orders table, so the user simply has to select the
value, rather than key it in.

Then you simply need a delete query for the Orders table.  Put OrderID in
the grid, and put forms![your form name]![your OrderID combo-box name] in
the criteria.

The button on your form simply opens the query.  The button wizard will
even help you set that up when you create your button, assuming your delete
query already exists.
-- 
Kipp Woodard, IS Manager
kwoodard@mesahq.com

MESA Solutions-  http://www.mesahq.com
7800 Governor's Drive West
Tower Building, 4th floor
Huntsville, AL 35806

(205) 864-0400
-- 
Kipp Woodard, IS Manager
kwoodard@mesahq.com

MESA Solutions-  http://www.mesahq.com
7800 Governor's Drive West
Tower Building, 4th floor
Huntsville, AL 35806

(205) 864-0400

Volt Information Sciences <volt1@ix.netcom.com> wrote in article
<5r5mu6$8lk@sjx-ixn9.ix.netcom.com>...
> How can I creat a form that will allow the user to delete a specified
> record from a specified field in a table?
> 
> I want to have a form that allows you to enter the "Order Number" and
> then 'click' a button that deletes that order from the "Orders" table.
> All records in the "Orders" table have "OrderID".
> 
> If the order number entered into the box doesn't match a number in the
> OrderID field of the Orders table then nothing happens.
> 
> Thanks in advance for your assistance
> 
> Lloyd D. Songne, Jr.
> Volt Services Group
> 
> Visit our interactive employment web site at http://www.volt-tech.com
> 
> 
Technical Details
Message-ID: <01bc986d$5e60a320$051886d0@kwoodard>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <5r5mu6$8lk@sjx-ixn9.ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6611,c6ecbd0945e250b4
X-Google-Attributes: gidf6611,public
X-Google-Thread: 104de1,c6ecbd0945e250b4
X-Google-Attributes: gid104de1,public
X-Google-Thread: ff0ac,c6ecbd0945e250b4
X-Google-Attributes: gidff0ac,public
X-Google-Thread: 10bb27,c6ecbd0945e250b4
X-Google-Attributes: gid10bb27,public
From: "Kipp Woodard" <kwoodard@mesahq.com>
Subject: Re: How to create a form to delete specific record from table?
Date: 1997/07/24
Message-ID: <01bc986d$5e60a320$051886d0@kwoodard>
X-Deja-AN: 258631111
References: <5r5mu6$8lk@sjx-ixn9.ix.netcom.com>
Organization: MESA Solutions
Newsgroups: comp.databases.ms-access,microsoft.public.access.queries,bit.databases.mssql-l,comp.databases.ms-sqlserver