Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
MIcrofoft Access 2007 problem: postavljanje query-ja!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
GlobalArtist



Joined: 26 Oct 2005
Posts: 67

PostPosted: 23.11.2006 12:15    Post subject: MIcrofoft Access 2007 problem: postavljanje query-ja! Add user to your forum ignore list Reply with quote

Ljudi, nisma stvarno znao gdje da otvorim temu, pa evo ovdje, sorry ak sam fulo al jbga..ovak..imam problem pri kreiranju query-a (upita) za jednu tablicu...u tablici imam 3 stupca - IME I PREZIME - RAZRED - ROĐENDAN
..sad, trebam kreirati query (upit) koji će mi izlistati sve one koji imaju rođendan u 11. mjesecu. Otvorim query u design view-u i sad trebam postavit kriterij za datum koji će mi izvadit one koji su rođeni u 11. mjesecu...i nađem u help file-u komandu koja ide ovako:

DatePart("m", [SalesDate]) = 12 Returns records where the transactions took place in December of any year. ......to bi trebalo biti to....to je primjer za neku kupovinu/prodaju ali isti je sistem, umjesto ovoga broja dvanaest bi trebalo staviti 11 za studeni mjesec i trebalo bi raditi...ali, kad poostavim taj kriterij, izbaci mi grešku koja ide ovako:

You omitted an operand or operator, you enetered an invalid character or comma, or you entered text without surrounding it in quotation marks.

jel može netko pomoći? hvla unaprijed
Back to top
View user's profile Send private message MSN Messenger
F4usT



Joined: 23 Sep 2004
Posts: 252
Location: Croatia / Čakovec

PostPosted: 23.11.2006 15:19    Post subject: Add user to your forum ignore list Reply with quote

odokativno: select * from tblTalblica where month(datum) = 11
nekak na tu foru...

_________________
sig.jpg
Back to top
View user's profile Send private message MSN Messenger
sinke



Joined: 02 Oct 2005
Posts: 257
Location: Zagreb

PostPosted: 23.11.2006 22:52    Post subject: Add user to your forum ignore list Reply with quote

Probaj ovako:
Code:
SELECT ImePrezime, Razred, Rodjendan
FROM Tablica
WHERE Month([Rodjendan]) = 11


@F4ust: SELECT * je majka svih zajeba!

_________________
THE SHTANZIG | Web Do's & Don'ts
Back to top
View user's profile Send private message Visit poster's website Twitter profile
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 05.12.2006 16:36    Post subject: Add user to your forum ignore list Reply with quote

Istina je, tema bi trebala ici u Server side - nema veze.

Nisi objasnio kojeg je tipa polje 'rodjendan', datumskog ili tekstualnog?

Ako spremas rodjendan kao "1205" ili "20061205" (primjeri za 5. 12.) nece ti raditi funkcija Month ni DatePart...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group