PC Review


Reply
Thread Tools Rate Thread

Combo Boxes in Connection Tables for Many-to-Many Relationships

 
 
=?Utf-8?B?Q2hyaXN0aWFuID48Pg==?= @discussions.micr
Guest
Posts: n/a
 
      19th May 2006
I have a many to many scenario: Table A is one set of data, Table B is
another, and Table C is my connection table for the data that is related
many-to-many.

Tables A and B are related to the appropriate fields in Table C. I am
currently using combo bozes, so when entering data in Table C, a list appears
from Table A or B. I selected No in "Limit to List."

I have created a Form for entering Data in Table C--this is all I want the
users to see.

Question: How can I set it up so that new data that does not exist in A or
B can be entered from the same field in Table C? I.e., suppose user is
entering the Customer Field in Table C (Orders). This field pulls from a
list of customers in Table A, but the Customer is new. I want the user to be
able to simply type in the new customer's name and it is now added to Table A.
 
Reply With Quote
 
 
 
 
Pieter Wijnen
Guest
Posts: n/a
 
      19th May 2006
You can find the solution by Checking http://www.mvps.org/access
Hint: The NotInlist Event Procedure

HTH

Pieter


<Christian > wrote in message
news:BB508F42-6632-475E-9C64-(E-Mail Removed)...
>I have a many to many scenario: Table A is one set of data, Table B is
> another, and Table C is my connection table for the data that is related
> many-to-many.
>
> Tables A and B are related to the appropriate fields in Table C. I am
> currently using combo bozes, so when entering data in Table C, a list
> appears
> from Table A or B. I selected No in "Limit to List."
>
> I have created a Form for entering Data in Table C--this is all I want the
> users to see.
>
> Question: How can I set it up so that new data that does not exist in A
> or
> B can be entered from the same field in Table C? I.e., suppose user is
> entering the Customer Field in Table C (Orders). This field pulls from a
> list of customers in Table A, but the Customer is new. I want the user to
> be
> able to simply type in the new customer's name and it is now added to
> Table A.



 
Reply With Quote
 
=?Utf-8?B?Q2hyaXN0aWFuID48Pg==?=
Guest
Posts: n/a
 
      19th May 2006
Okay, I found it. It's a visual Basic function...

2 Questions:

1. This seems like a pretty normal function, isn't there already a way
within access?

2. Besides adding to the drop down list, does this actually add to the
other table?
 
Reply With Quote
 
Pieter Wijnen
Guest
Posts: n/a
 
      19th May 2006
No VB code at the site *only* VBA
without the link I cant't say, but probobly yes ;-)

The notInlist event *will' fire when an entry is not in the list

HTH

Pieter

"Christian ><>" <(E-Mail Removed)> wrote in message
news:38ABCB57-148A-40E6-9F03-(E-Mail Removed)...
> Okay, I found it. It's a visual Basic function...
>
> 2 Questions:
>
> 1. This seems like a pretty normal function, isn't there already a way
> within access?
>
> 2. Besides adding to the drop down list, does this actually add to the
> other table?



 
Reply With Quote
 
Douglas J Steele
Guest
Posts: n/a
 
      19th May 2006
"Pieter Wijnen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> The notInlist event *will' fire when an entry is not in the list


As long as the combo box's LimitToList property is set to True.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



 
Reply With Quote
 
Pieter Wijnen
Guest
Posts: n/a
 
      19th May 2006
I know,
was to lazy

ISC

Pieter

"Douglas J Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:(E-Mail Removed)...
> "Pieter Wijnen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> The notInlist event *will' fire when an entry is not in the list

>
> As long as the combo box's LimitToList property is set to True.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>



 
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
Database Design/Combo Boxes and Relationships Gordzilla Microsoft Access Database Table Design 2 10th Jul 2008 04:17 PM
Linking Tables for combo boxes misschanda via AccessMonster.com Microsoft Access Forms 1 4th Oct 2007 10:31 PM
Unbound Combo Boxes Using 7 Different Tables Rod via AccessMonster.com Microsoft Access Form Coding 1 21st Jan 2007 08:06 AM
combo boxes in tables =?Utf-8?B?Y2xvc2tleQ==?= Microsoft Access Database Table Design 1 30th Dec 2004 02:14 AM
combo/list boxes from other tables amelia Microsoft Access Database Table Design 4 23rd Jul 2004 11:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 PM.