Hi Lisa,
Yes, that's exactly what I am saying. If you are giving them a list of
items to choose from, you generally want to store the ID of the item they
selected, not the data. There are of course exceptions to this rule, but
we'll leave it at that for now.
To then get the fields you require to calculate things, you would have your
query link the Attendees table to the Packages table, and select the fields
as appropriate from each table.
Alternatively, you can have the selected package display in a combo, and
have the rate display in a non-editable text box by using
"=forms!frmFORMNAME.cboCOMBONAME.column(2)" as the text boxes data source -
assuming that you had ID, Package Type and Rate as the fields (in order)
returned in the query for your packages combo box.
Does this make sense?
Damian.
Damian,
I'm trying to figure out the best way to do this:
The attendee table (subform) needs to display the following values
name, package, rate, arrival date, departure date, etc
most values are entered manually, but the packages they pick in the
drop down will determine what rate they will get. I need both values to
populate seperately in the subform as well as have the value to create
an invoice later.
so if I link Package ID to the Attendees table, then are you saying
that when they choose a package, the ID will go in the attendees table,
then have some kind of query in the package and rate field in the
attendees control source or change event that will show the values?
~L~
Damian S wrote:
Hi Lisa,
Why do you want to add the items from the combo to another table? You could
simply have the Attendees table link to the Packages table via the ID field...
Other than that, if you are wanting to display two fields in a Combo after
you have selected it, you will need to create a display field that
concatenates the two fields together, eg: DisplayField: [Display] & " : " &
[Rate] would achieve that for you.
If you are meaning something entirely different, feel free to clarify.
Hope this helps.
Damian.
:
I have a drop down called packages (which pulls from a Packages Table)
ID
Display - this is what they see on the left of the dropdown
Rate - this is what they see on the right
The drop down needs to add 'Display' and 'Rate' in another table called
Attendees (which is a subform). How do I get this to work? I can have
it either populate the Display or the Rate fields in Attendees but I
can't figure out both.
any ideas?
Thanks in advance
Lisa