Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficult query need help

Status
Not open for further replies.

ts568

Programmer
May 9, 2007
14
GB
Hello, this time,

I have an entity called SUPPLIERSHIP
there are 3 tables/attributes:

dateCanBeShipped
supplierName
and
productType

I need to make a query that allows me to enter in a month, either into the query, or even better, a box pops up for me to enter it in.

When I have entered in the month, the search query has to search through my entity and show me all of the suppliers who can supply me with the product SAUSSAGES on the month I have specified.

I have spent just over an hour on this so far, and don't seem do be getting anywhere.
[blush]
 
In the criteria line for the date field try:

Month([FieldName]) = [Enter Month]

When it asks you to enter a month enter it using the numbers 1 thru 12 (1=January, 2=February, etc.).
 
Thanks for the reply,
Would your idea still work if my date format is day/month/year?
e.g. today = 09/05/2007
Or would I have to enter in '01' as opposed to '1'
 

Numerically speaking, 01 and 1 are the same thing.


Randy
 

And just to mention, that all years till now have one instance of January = 1 ! And that goes for the rest of the months [wink]

Wouldn't you need the year also?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top