Re: Multi column select in ComboBox(s)
- From: "Evi" <evwool@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Mar 2008 08:26:05 GMT
The way to get both FirstName and surname displayed is to click RowSource in
your combo box's properties.
A query grid will open.
Click on the first name field, go to Insert, Column so that you have a new
column to the LEFT of the first name field and type in the top row of that
column
FullName: ([FirstName] + " ") & [SurName]
(replacing my field names with the real ones)
Evi
"DocBrown" <DocBrown@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F55A145D-6AD4-4CD9-AA4D-040021B0F424@xxxxxxxxxxxxxxxx
I have a DB where I'm managing a group of volunteers. There are two tablesthe
relevant for this discussion, a Volunteer table that stores details about
them, and a Login table where I'll enter the times they login and out. I'm
looking for help on the approach to code the LogIn form to allow
semi-automated data entry and calculation that will store data in both the
logIn and Volunteer tables. Ideally, I'd like to allow the user to select
volunteer first and last name from a dropdown. Or is there some other wayto
find the appropriate volunteer record.form
The relevant fields for Volunteer TBL are:
Name: Type:
VolID (AutoNumber)
FirstName Text
LastName Text
TotalHours Date/Time
(other fields....)
For LogIn TBL:
RecID (AutoNumber)
VolID Number
Date Date/Time
TimeIn Date/Time
TimeOut Date/Time
The login Form will display the following fields:
Date
FirstName
LastName
TimeIn
TimeOut
Hours (Calculated from timeout - timein)
The two tables are related on the VolID field.
The record for the volunteer tbl will have been created first (I have a
for doing that.), if not the volunteer's login data can't be entered.query
To create an entry in the Login tbl, my first attempt To retrieve the
appropriate volunteer record was to create a 3 column combobox with a
that retrieves the VolID, firstname, lastname from volunteer tbl. Thisallows
me to select the firstname, lastname from the dropdown (column 0 wdth=0).But
when I select an item, the combobox only displays the firstname. Why isn't
the last name also displayed? Is there a way to display both?
Is there a different approach I should take? I hope this is enough info.
Thanks,
John S.
.
- Follow-Ups:
- Re: Multi column select in ComboBox(s)
- From: DocBrown
- Re: Multi column select in ComboBox(s)
- References:
- Multi column select in ComboBox(s)
- From: DocBrown
- Multi column select in ComboBox(s)
- Prev by Date: Multi column select in ComboBox(s)
- Next by Date: RE: receiving error message using setvalue on macro
- Previous by thread: Multi column select in ComboBox(s)
- Next by thread: Re: Multi column select in ComboBox(s)
- Index(es):
Relevant Pages
|
Loading