Access 97 beginner

S

Steve

I've created a simple database for Helpdesk tracking using
Access 97. The database has two tables - Employee &
Tracking. I created a form that enters information into
Tracking, but have been trying to get the "Name" combo box
on the form to bring up data from the Employee table (to
save typing). The Employee table has two columns - Lname
& Fname. I can see both columns when I use the drop down
box, but only the last name will appear on the screen when
selected (and only the last name is entered on the
Tracking table).

Any help would be appreciated.
 
S

steve

Thanks, that's just what I needed!
-----Original Message-----
While ComboBoxes can display a number of columns, they
only store one to use for updating and this is what is
displayed when selected.

In the properties, you can select the Bound (or saved)
column, as well as set the column widths.

I would use this for my ComboBox:

RowSourceType: Table/Query
RowSource: SELECT [tblEmployees].[LastName],
[tblEmployees].[LastName] & ", " & [tblEmployees].
[FirstName] FROM tblEmployees ORDER BY [tblEmployees].
[LastName], [tblEmployees].[FirstName];
ColumnCount: 2
ColumnHeads: No
ColumnWidths: 0.0", 1.5"
BoundColumn: 1

This will pull and store the LastName field but not
display it. Instead, the Last-comma-First names will
display.

Personally, I would use a different identifier than the
LastName because there are too many duplications, even
within small companies.

Hope this helps!

Howard Brody

-----Original Message-----
I've created a simple database for Helpdesk tracking using
Access 97. The database has two tables - Employee &
Tracking. I created a form that enters information into
Tracking, but have been trying to get the "Name" combo box
on the form to bring up data from the Employee table (to
save typing). The Employee table has two columns - Lname
& Fname. I can see both columns when I use the drop down
box, but only the last name will appear on the screen when
selected (and only the last name is entered on the
Tracking table).

Any help would be appreciated.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top