G
Guest
I would like to start a new thread on my problem since the first one sort of
died on the vine.
I’ve got this application in which I’m using a Form to enter data. I’ll use
selling sandwiches as the example. Let’s suppose that I want to track sells
of different kinds of sandwiches.
I have a table set up with just Egg Sandwiches of which there are four or
five different selections that could be made. Each of the five selections
has a different price. So, in this table for Egg Sandwiches there is the
description and the price for each.
Now - I've got another Table set up just to collect ordering information. I
have created a Form through which the User can select the Sandwiches and
store the selection in the Ordering Information Table. This Form uses a
Combo Box that allows the user to select the Sandwich. What I want is for
the price of the Sandwich to automatically display on the Form when the
Sandwich is selected.
Selecting the sandwich and the price from the Egg Sandwich Table with
individual Combo Boxes works great. I’m able to write the sandwich
description and the price to the correct fields in the Ordering Information
Table. What I want to do is to automatically display the price on my form
when a specific sandwich is selected and have it written to the Table.
I worked out how to automatically display the price when the sandwich is
selected by using a Combo Box to retrieve the description buy setting the
Control Source to a Query that’s linked to the Order Information Table, Bound
Column = 2 and the Row Source is set to a Query that’s linked to the Egg
Sandwich Table. I then have a Text Box with its Control Source set to the
Form I’m working in. The Form looks like it’s doing what I want it to do.
The Problem: The Form is writing the value of the Sandwich to the Order
Information Table instead of the description of the Egg Sandwich and its not
writing a 0 (Zero) in the price field, even though the Form is displaying the
correct information.
I’ve tried everything I can think of. Sure could use some help on this one.
died on the vine.
I’ve got this application in which I’m using a Form to enter data. I’ll use
selling sandwiches as the example. Let’s suppose that I want to track sells
of different kinds of sandwiches.
I have a table set up with just Egg Sandwiches of which there are four or
five different selections that could be made. Each of the five selections
has a different price. So, in this table for Egg Sandwiches there is the
description and the price for each.
Now - I've got another Table set up just to collect ordering information. I
have created a Form through which the User can select the Sandwiches and
store the selection in the Ordering Information Table. This Form uses a
Combo Box that allows the user to select the Sandwich. What I want is for
the price of the Sandwich to automatically display on the Form when the
Sandwich is selected.
Selecting the sandwich and the price from the Egg Sandwich Table with
individual Combo Boxes works great. I’m able to write the sandwich
description and the price to the correct fields in the Ordering Information
Table. What I want to do is to automatically display the price on my form
when a specific sandwich is selected and have it written to the Table.
I worked out how to automatically display the price when the sandwich is
selected by using a Combo Box to retrieve the description buy setting the
Control Source to a Query that’s linked to the Order Information Table, Bound
Column = 2 and the Row Source is set to a Query that’s linked to the Egg
Sandwich Table. I then have a Text Box with its Control Source set to the
Form I’m working in. The Form looks like it’s doing what I want it to do.
The Problem: The Form is writing the value of the Sandwich to the Order
Information Table instead of the description of the Egg Sandwich and its not
writing a 0 (Zero) in the price field, even though the Form is displaying the
correct information.
I’ve tried everything I can think of. Sure could use some help on this one.