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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

query question



 
 
Thread Tools Display Modes
  #1  
Old April 7th, 2005, 02:33 PM
Jimenda
external usenet poster
 
Posts: n/a
Default query question

I am looking to have my query to pull info from a table and not to return any
duplicate values. In my table I have a date column and I want to populate
(from this query) a combo on a form with just one listing of each date in
table.
--
Thank You & God Bless,

Jimenda
  #2  
Old April 7th, 2005, 02:47 PM
tina
external usenet poster
 
Posts: n/a
Default

try

SELECT MyTable.MyDateField
FROM MyTable
GROUP BY MyTable.MyDateField;

substitute the correct table and field names, of course. paste the above SQL
into the SQL view of your query.
if you prefer to work in query design view instead: create a new query. in
design view, add the table and put the date field in the query grid. on the
toolbar, click the Totals button (it looks like a funny-looking capital E,
or a capital M lying on its' side).

hth


"Jimenda" wrote in message
...
I am looking to have my query to pull info from a table and not to return

any
duplicate values. In my table I have a date column and I want to populate
(from this query) a combo on a form with just one listing of each date in
table.
--
Thank You & God Bless,

Jimenda



  #3  
Old April 7th, 2005, 06:09 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default

"=?Utf-8?B?SmltZW5kYQ==?=" wrote in
:

I want to populate
(from this query) a combo on a form with just one listing of each date
in table.


SELECT DISTINCT MyDate
FROM MyTable
ORDER BY MyDate


Hope that helps


Tim F

 




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
Query management question Dana809904 Running & Setting Up Queries 2 September 28th, 2004 07:18 AM
Too Few Parameters error Mail Merge Access Parameter Query Tony_VBACoder Mailmerge 3 September 14th, 2004 12:15 PM
Sub Query Consolidation, Syntax Question Quizarate Running & Setting Up Queries 5 September 9th, 2004 10:30 PM
Print Taher Setting Up & Running Reports 1 August 31st, 2004 09:07 PM
Hidden files in Ms-Query cause ODBC connect errors or Query is wac needyourhelp General Discussion 4 July 12th, 2004 09:38 PM


All times are GMT +1. The time now is 12:25 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.