Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2007

Tip: Looking for answers? Try searching our database.

Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SpaceCoorDinator - 17 Dec 2007 16:59 GMT
How could I populate an employees name add last name automatically once I
have selected the employee's ID.
Thank you.
Ron2006 - 17 Dec 2007 17:32 GMT
On Dec 17, 9:59 am, SpaceCoorDinator
<SpaceCoorDina...@discussions.microsoft.com> wrote:
> How could I populate an employees name add last name automatically once I
> have selected the employee's ID.
> Thank you.

Assuming that you are selecting from a combo box

1) query for combobox should include the emplyee name as well as the
ID, You can allow the user to see or not see the name by changing the
field length for the column that contains the name to 0 or an
appropriate length.
Column cout should be number of columns, Bound column should be the
column of the employee ID, and the column widths should be appropriate
values to show or not show the field in the dropdown.  example: 1.0";
1.5"  would have 1 inch for the ID and 1.5 inches for the name.

2) In the afterupdate event of the combobox please code

   me.nameoftextfieldthatshowsemployeename =
me.comboboxname.column(n)

The n is the number of the column in the query that contains the
employee name with a zero base count.
First column in query would have n =  0
Second column would have n = 1.

Ron
Jeff Boyce - 17 Dec 2007 17:51 GMT
In addition to the approaches Ron offers, there may be a difference of
definition.

What do you mean when you say "populate ...automatically"?  Populate what?
Why?\

Regards

Jeff Boyce
Microsoft Office/Access MVP

> How could I populate an employees name add last name automatically once I
> have selected the employee's ID.
> Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.