How do I set up an Auto text in Access?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to know how do I have the Auto complete function in Access. As in when
I have a word which is used repetedly in the databse how can I get Acess to
complete it automatically for me.
For example: If I have a movie database and I have Kevin Costner as its main
lead how do I go about not typing his name again and again and let Access do
it.Can I have Access complete the name for me automatically ?
 
Hi, Sim.

If you have a table of Actors, such as:

ActorID AutoNumber (Primary Key)
ActorFName Text
ActorLName Text
BirthDate Date
....etc.

then you can use a combo box, with its AutoExpand property set to Yes. To
display the first and last names on your form, yet store the ActorID into a
numeric field in your table, set the following combo box properties:

RowSource SELECT Actors.ActorID, [ActorFName] & " " & [ActorLName] AS
ActorName FROM Actors;
BoundColumn 1
ColumnWidths 0";2" (or whatever width displays the longest name)
ControlSource The name of the numeric field in which to store the ActorID
AutoExpand Yes

Beyond combo boxes, I no of no other Access feature that fills in text based
on an "oft-used" paradigm.

Hope that helps.
 

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

Back
Top