PC Review


Reply
Thread Tools Rate Thread

Auto Complete Fields

 
 
=?Utf-8?B?RGVyZWtDcmFpbmU=?=
Guest
Posts: n/a
 
      27th Jun 2006
I am using three different forms for my database, one of which is for
"personal information". I want some of the fields on the Personal Info form
to repeat at the top of the other two forms, but i need them to "auto
complete" as each of the other forms is designed to track multiple entries
for the selected person. I'm not sure how to accomplish this. Any help
would be greatly appreciated. Thanks.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      27th Jun 2006
Derek,

It's hard to tell without information about the tables and/or queries your
forms are based on, but "AutoComplete" raises a red flag to me--it suggests
that you are attempting to *store* information from your PersonalInfo table
into the RecordSources on which the other two forms are based. This is
non-normalized design and bad practice. The only field that should be
replicated in the other tables is the primary key of your PersonalInfo table
(a foreign key).

If, on the other hand, you already have normalized tables, and merely wish
to *display* the fields from the PersonalInfo table, there are 2 ways to do
it:

1) Use a combo box Bound to the foreign key field. Set the RowSource to
select the primary key & any other fields from your PersonalInfo tables. Set
the BoundColumn to 1 to store the primary key in the foreign key field. Set
the first column width to 0" so that the 2nd field displays in the drop-down
list and after selection. If you enable the combo box wizard, it's very
straightforward. Accept the default Hide Key Field (Recommended) when
prompted.

Then use the Column property of the combo box to display the other fields in
textboxes. The index starts with zero, so to display the third column, set
the textbox' ControlSource to = YourComboBox.Column(2)

2) Base your form on a query that links the two tables by the
primary/foreign key fields, and include those fields you wish to display.
Don't include the primary key field from PersonalInfo or your query will be
non-updateable; include the foreign key instead. Use textboxes to display
the additional fields and a combo box for the foreign key.

Hope that helps.
Sprinks

"DerekCraine" wrote:

> I am using three different forms for my database, one of which is for
> "personal information". I want some of the fields on the Personal Info form
> to repeat at the top of the other two forms, but i need them to "auto
> complete" as each of the other forms is designed to track multiple entries
> for the selected person. I'm not sure how to accomplish this. Any help
> would be greatly appreciated. Thanks.

 
Reply With Quote
 
=?Utf-8?B?RGVyZWtDcmFpbmU=?=
Guest
Posts: n/a
 
      28th Jun 2006
Thanks, Sprinks. I appreciate the help, and I'm running with it now.

"Sprinks" wrote:

> Derek,
>
> It's hard to tell without information about the tables and/or queries your
> forms are based on, but "AutoComplete" raises a red flag to me--it suggests
> that you are attempting to *store* information from your PersonalInfo table
> into the RecordSources on which the other two forms are based. This is
> non-normalized design and bad practice. The only field that should be
> replicated in the other tables is the primary key of your PersonalInfo table
> (a foreign key).
>
> If, on the other hand, you already have normalized tables, and merely wish
> to *display* the fields from the PersonalInfo table, there are 2 ways to do
> it:
>
> 1) Use a combo box Bound to the foreign key field. Set the RowSource to
> select the primary key & any other fields from your PersonalInfo tables. Set
> the BoundColumn to 1 to store the primary key in the foreign key field. Set
> the first column width to 0" so that the 2nd field displays in the drop-down
> list and after selection. If you enable the combo box wizard, it's very
> straightforward. Accept the default Hide Key Field (Recommended) when
> prompted.
>
> Then use the Column property of the combo box to display the other fields in
> textboxes. The index starts with zero, so to display the third column, set
> the textbox' ControlSource to = YourComboBox.Column(2)
>
> 2) Base your form on a query that links the two tables by the
> primary/foreign key fields, and include those fields you wish to display.
> Don't include the primary key field from PersonalInfo or your query will be
> non-updateable; include the foreign key instead. Use textboxes to display
> the additional fields and a combo box for the foreign key.
>
> Hope that helps.
> Sprinks
>
> "DerekCraine" wrote:
>
> > I am using three different forms for my database, one of which is for
> > "personal information". I want some of the fields on the Personal Info form
> > to repeat at the top of the other two forms, but i need them to "auto
> > complete" as each of the other forms is designed to track multiple entries
> > for the selected person. I'm not sure how to accomplish this. Any help
> > would be greatly appreciated. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Complete (auto fill) in Lookup Fields lucindaaps Microsoft Access 0 13th Jan 2010 09:56 PM
Auto Complete fields Frank Microsoft Access Forms 2 15th Jan 2008 01:56 PM
Is auto complete in form fields possible? =?Utf-8?B?Wm9sdGFu?= Microsoft Access 1 19th Nov 2004 10:15 PM
HELP! how do I get the TO, cc and bcc fields to auto complete? =?Utf-8?B?c2FhcG5q?= Microsoft Outlook Discussion 5 26th Dec 2003 10:31 PM
Auto Complete Fields Greg Microsoft Access Forms 0 24th Jul 2003 08:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.