473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Dec 30 '07 #1
2 1209
On Sun, 30 Dec 2007 04:09:58 -0800, Hanny J wrote:
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.
Dec 30 '07 #2
On Dec 30 2007, 2:46�pm, Don Calloway <drcallo...@verizon.netwrote:
On Sun, 30 Dec 2007 04:09:58 -0800, Hanny J wrote:
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.- 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
Jan 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff Magouirk | last post by:
I am new to using sqlserver and have been given the task to get the column name, data type and the description from a given table and put this into another table. Can this be done? Thanks in...
1
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
11
by: suma | last post by:
Hello, I want to delete duplicate rows in a table when no primary key is defined. For eg: If we have table1 with data as below, Suma 23 100 Suma 23 100 I want to delete a row from this...
4
by: Dave Brydon | last post by:
Access 2003 I have a combo box in my personnel table, which draws its data from a trade code table; the original field in the code table, is numeric, Long Integer, and formatted with 5 zero's . ...
2
by: Armando | last post by:
I created a report to display all the tables/fields in a db, and all the code is in the report's module - for easy one-chunk portability to other apps. In the OnOpen, I create a temp table, fill...
6
by: Kashan | last post by:
i have a table named tblPerson. There is a field in it named PersonID. the data type of the PersonID is nvarchar(5). there were 9999 rows in the table when i added the series of 10000-10010 it is...
1
by: dstorms | last post by:
Hi folks, I am trying to set up my database to create a new record in one table when a new record is created in another. Since it is a one-to-one realtionship it certainly would be easier to put...
5
by: tasawer | last post by:
I need some assistance with SQL query. I will be grateful if you can provide help please. I have a database that records details of a road traffic accident and name of driver. sub-form records...
1
by: manupr | last post by:
I have two table here uncorfirmed booking and confirmed bookings I only want data to be listed in the unconfirmed booking table when conformation = no and in only want data to be lised in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.