Connecting Tech Pros Worldwide Help | Site Map

help!!- deleting information from a table when selected in a combobox

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 30th, 2007, 11:15 AM
Hanny J
Guest
 
Posts: n/a
Default help!!- deleting information from a table when selected in a combobox

I am making a database for a dress shop, which hires and sells prom
dresses. I am creating a form where the user selects the customer
using a list box and then using a combo box to select a dress. The
combo box is connected to a query which looks in the dress information
table and the dresses which status is for sale will then be shown
inboth the query and the combo box.

The Problem I am having is that, when the dress is selected on the
form and is saved to a sales table, I want the orginal dress
information for that selected dress to be deleted in the dress
information table. Does anyone know how i can do this?

Hope that makes sense

Thank you

  #2  
Old December 30th, 2007, 01:55 PM
Don Calloway
Guest
 
Posts: n/a
Default Re: help!!- deleting information from a table when selected in acombobox

On Sun, 30 Dec 2007 04:09:58 -0800, Hanny J wrote:
Quote:
I am making a database for a dress shop, which hires and sells prom
dresses. I am creating a form where the user selects the customer using
a list box and then using a combo box to select a dress. The combo box
is connected to a query which looks in the dress information table and
the dresses which status is for sale will then be shown inboth the query
and the combo box.
>
The Problem I am having is that, when the dress is selected on the form
and is saved to a sales table, I want the orginal dress information for
that selected dress to be deleted in the dress information table. Does
anyone know how i can do this?
>
Hope that makes sense
>
Thank you
I'm not sure why you would want to delete the dress information in the
dress table; wouldn't you rather mark the item as unavailable, or
something like that? Anyway, to do what you want you would need to
create VB code in the dress combo box's AfterUpdate event which deletes
the corresponding record in the dress table. Hope this helps.
  #3  
Old January 1st, 2008, 03:35 PM
Hanny J
Guest
 
Posts: n/a
Default Re: help!!- deleting information from a table when selected in acombo box

On Dec 30 2007, 2:46�pm, Don Calloway <drcallo...@verizon.netwrote:
Quote:
On Sun, 30 Dec 2007 04:09:58 -0800, Hanny J wrote:
Quote:
I am making a database for a dress shop, which hires and sells prom
dresses. I am creating a form where the user selects the customer using
a list box and then using a combo box to select a dress. The combo box
is connected to a query which looks in the dress information table and
the dresses which status is for sale will then be shown inboth the query
and the combo box.
>
Quote:
The Problem I am having is that, when the dress is selected on the form
and is saved to a sales table, I want the orginal dress information for
that selected dress to be deleted in the dress information table. Does
anyone know how i can do this?
>
Quote:
Hope that makes sense
>
Quote:
Thank you
>
I'm not sure why you would want to delete the dress information in the
dress table; wouldn't you rather mark the item as unavailable, or
something like that? �Anyway, to do what you want you would need to
create VB code in the dress combo box's AfterUpdate event which deletes
the corresponding record in the dress table. �Hope this helps.- Hide quoted text -
>
- Show quoted text -
thanks I will try VB coding, and ordinally I had the idea of showing
the dress as unavailable, so will try that if I can't do the coding

Thank you for your help
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.