A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Drop Down Problem



 
 
Thread Tools Display Modes
  #1  
Old June 5th, 2004, 10:59 AM
David F-B
external usenet poster
 
Posts: n/a
Default Drop Down Problem

Hi All!

I've got a list of companies which is part of a single table database.
Data for the people who work for which company are stuck within the
database.

Eventually I want to separate out the companies, assign them unique
codes, thin them out so there are no duplicates, then stick them in
table marked Companies. I then hope to link them to the respective
employees in some kind of set up which will allow me to quickly and
easily change the company people work for.

I am setting up a form to see the data. The problem is that if you
make up a query fromtwo different tables there appears to be no way to
edit the resulting data - even when it is in a form. Can anyone tell
me how to get things so that I can actually edit the link between a
person and their company?

Also, when I'm doing the form, I would like a drop down box which both
displays an alphabetic list of the companies (presumably from the
table) while allowing me to add a new one as I need. Anyone know how
this can be done?

Cheers
DF-B
  #2  
Old June 5th, 2004, 01:14 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Drop Down Problem


"David F-B" wrote in message
...
Hi All!

I've got a list of companies which is part of a single table database.
Data for the people who work for which company are stuck within the
database.

Eventually I want to separate out the companies, assign them unique
codes, thin them out so there are no duplicates, then stick them in
table marked Companies. I then hope to link them to the respective
employees in some kind of set up which will allow me to quickly and
easily change the company people work for.

I am setting up a form to see the data. The problem is that if you
make up a query fromtwo different tables there appears to be no way to
edit the resulting data - even when it is in a form. Can anyone tell
me how to get things so that I can actually edit the link between a
person and their company?

Also, when I'm doing the form, I would like a drop down box which both
displays an alphabetic list of the companies (presumably from the
table) while allowing me to add a new one as I need. Anyone know how
this can be done?

Cheers
DF-B


  #3  
Old June 5th, 2004, 01:17 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Drop Down Problem

David

Another approach might be to build a query of the companies and set the
Unique Values property to Yes. This would give you a short(er) list of
companies, which you could then use an append query (or change your query to
an append query) to add to your new tblCompany.

You haven't provided any description of what your current or intended table
structures are like, so it's a little difficult to offer more specific
suggestions.

--
Good luck

Jeff Boyce
Access MVP

  #4  
Old June 6th, 2004, 05:17 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Drop Down Problem

See in-line.

--
HTH
Van T. Dinh
MVP (Access)


"David F-B" wrote in message
...
Hi All!

I've got a list of companies which is part of a single table database.
Data for the people who work for which company are stuck within the
database.

Eventually I want to separate out the companies, assign them unique
codes, thin them out so there are no duplicates, then stick them in
table marked Companies. I then hope to link them to the respective
employees in some kind of set up which will allow me to quickly and
easily change the company people work for.

I am setting up a form to see the data. The problem is that if you
make up a query fromtwo different tables there appears to be no way to
edit the resulting data - even when it is in a form. Can anyone tell
me how to get things so that I can actually edit the link between a
person and their company?


If you want the Query to be updateable (so that you can edit the data), you
need to join the 2 Tables by the Primary Key - Foreign Key pair. See next
part for perhaps, more appropriate set-up.



Also, when I'm doing the form, I would like a drop down box which both
displays an alphabetic list of the companies (presumably from the
table) while allowing me to add a new one as I need. Anyone know how
this can be done?

This can be achieved using a "search" ComboBox with Not-In-List using a Form
/ Subform combination where the Main Form is based on tblCompany and the
Subform is based on tblPeople.

OTOH, you are much better to decide on the Table Structure before worrying
about the GUI. You may need to consider whether you should use One-to-Many
or Many-to-Many first before you can decide on the GUI.


Cheers
DF-B



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.