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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding an 'All' option to combo box



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2005, 11:25 AM
pedxxx pedxxx is offline
Member
 
First recorded activity by OfficeFrustration: Sep 2005
Location: Cramlington
Posts: 3
Talking Adding an 'All' option to combo box

I have searched for a while on how to do this. The solution usually given involving the UNION command does not help me as I'm only reading in one table.

I don't want to produce a list instead as the list is always changing.

I'm reading tables from a 3rd party flexitime system database into a Access database. I have set up a combo box to list all of the employees clock numbers. This, in turn can produce a flexisheet for a chosen month. We would like the option to display or print details for all of the employees at once.

Here is the RowSource command

SELECT Employees.[Clock no] FROM Employees ORDER BY Employees.[Clock no];

Does anybody have any idea?
  #2  
Old September 14th, 2005, 09:44 PM
Bob Miller Bob Miller is offline
Senior Member
 
First recorded activity by OfficeFrustration: May 2005
Posts: 358
Default

Quote:
Originally Posted by pedxxx
I have searched for a while on how to do this. The solution usually given involving the UNION command does not help me as I'm only reading in one table.

I don't want to produce a list instead as the list is always changing.

I'm reading tables from a 3rd party flexitime system database into a Access database. I have set up a combo box to list all of the employees clock numbers. This, in turn can produce a flexisheet for a chosen month. We would like the option to display or print details for all of the employees at once.

Here is the RowSource command

SELECT Employees.[Clock no] FROM Employees ORDER BY Employees.[Clock no];

Does anybody have any idea?
See if this link is your solution:
http://www.mvps.org/access/forms/frm0043.htm
  #3  
Old September 15th, 2005, 04:12 PM
pedxxx pedxxx is offline
Member
 
First recorded activity by OfficeFrustration: Sep 2005
Location: Cramlington
Posts: 3
Default

No sorry. This is the fix I mentioned above. Unless you know better, this is a union of two or more fields. I'm just trying to add "all" to one field.
  #4  
Old September 19th, 2005, 12:16 PM
pedxxx pedxxx is offline
Member
 
First recorded activity by OfficeFrustration: Sep 2005
Location: Cramlington
Posts: 3
Default

Any more ideas?
  #5  
Old October 1st, 2005, 06:14 PM
John W. Vinson/MVP
external usenet poster
 
Posts: n/a
Default


"pedxxx" wrote in message
news

I have searched for a while on how to do this. The solution usually
given involving the UNION command does not help me as I'm only reading
in one table.

Read the instructions again. They assume that you're using *one* table,
just as you are!

You can UNION with a SELECT statement which returns a single record
containing only calculated fields - one of which is "ALL".

John W. Vinson/MVP


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill fields of a table when selecting a combo box option Mike_can General Discussion 5 September 8th, 2004 10:59 PM
Adding an "All" selection to a combo box Andrea Using Forms 1 July 30th, 2004 09:08 PM
Data Dependencies between Combo Boxes Tom Using Forms 7 June 6th, 2004 05:25 PM
option group versus combo box Deb New Users 2 May 26th, 2004 02:34 PM
Adding Option Buttons to a Group Box Sandy Worksheet Functions 1 September 28th, 2003 12:13 AM


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


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