Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

restricted entry

ResolvedVersion 2007
Edited on Wed 9 Mar 2011, 15:56

Vivien has attended:
Access Introduction course
Access Intermediate course

Look up Wizard

I have a Employee list/ table with Fields to enter Firstname and Lastname(also created a form for that). Also have a table for the Working Hours with Field Employee name which was created as a look up wizard(also have a form for that). Now my problem: I can look the names up but it only displays the first name-also in the look up I see both, but really I need to have first and last name displayed. Please help.
Many Thanks

RE: Look up Wizard

Hi Vivien,

Thank you for your question.

Create a query based on the table that contains the First and Last Name fields.

Add the First and Last Name fields into the query. Save the query with a name.

Click into the next available blank field name and type the following:

FullName:[FirstName]&" "&[LastName]

This will concatenate the First Name followed by a space folllowed by the Last Name when you view the results.
e.g. Simon Khan

Then go to the foreign key field in the hours table and choose Lookup Wizard. Choose the query and then select the field FullName. It will then display the Full Name rather than just displaying the FirstName.

I hope this answers your question.

Let me know.

Regards

Simon

Access tip:

Create a custom Close button on a Form

By default, Forms that you create in Access have a full set of control buttons, that is, a title bar with Minimize, Maximize and Close buttons in the top right-hand corner and a Control Menu in the top left-hand corner.



Sometimes Access needs to follow certain procedures or events as users close a Form (such as automatically opening another Form perhaps). So it is often a good habit to create a custom Close button on a Form for everyone to use, rather than the standard closing cross.



To create a custom Close button:

1) In Form Design View, draw a Command Button onto the Form.

2) Use the Command Button Wizard to select Form Operations under Categories, and Close Form under Actions.

3) Choose Finish.



Access then creates the button and code to close the form for you. You can add any extra code that needs to run as the Form closes to the same Close procedure.



However, the creation of a custom Close button is pointless if the closing X in the top right-hand corner of the Form remains active. To make the closing X inactive, open the Form Properties box then on the Format tab set the Close Button setting to No. This will grey out the closing X leaving it visible, but inactive.



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.