Results 1 to 4 of 4
  1. #1
    sandlucky is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    35

    Lightbulb Simple Select query

    My Query>

    SELECT Genus, Species
    FROM Main

    In above query I get Genus, Species in 2 columns, But need them
    to appear in 1 column.
    (Need both Genus and species names to apear in only 1 column)

    Pls help,

  2. #2
    sabre is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    4
    SELECT [Genus] & " , " & [Species] AS [Genus and Species]
    FROM Main;

  3. #3
    sandlucky is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    35

    Smile Thanx

    Cool,
    V. simple.
    I got what I expected.
    Thanxalot! TC

  4. #4
    sandlucky is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    35
    Pls can u giv me lil help,

    Consider query

    SELECT
    [Genus] & " " & [Species]&" is commonly known as "& [Sinhala1] & " in Sinhala. These "&[GrowthDuration]&" "&[Habitat]&"s"&" mainly grows in "&[Ecosystem]&" ecosystems of "&[climaticzone]&" of Sri Lanka." AS [Details]
    FROM Main
    WHERE ID='01'
    It gives output>

    Ixora coccinea is commonly known as Rathmal in Sinhala. These P Bs mainly grows in TT ecosystems of WID of Sri Lanka.

    I have separate switch functions to decode abbriviates (P,B,TT,WID)
    ex: P means Perranial (Growth Duration)
    Growth Duration ha 2 types (P=Perrinial, A=Annual)
    In below query switch function, I use it to Decode orginal words (Annula, Perannial)
    insted of Abbriviates (P,A).
    Switch(Main.GrowthDuration='A','Annual',Main.Growt hDuration='P','Perennial')

    But I need to combine these 2 queries, can u help me 2 solve this

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Simple Combo Box Multiple Select Question
    By ahamilton in forum Access
    Replies: 7
    Last Post: 03-17-2011, 01:38 PM
  2. Simple Query
    By tombsy in forum Access
    Replies: 2
    Last Post: 02-01-2011, 09:48 AM
  3. Simple query help
    By Subhunter in forum Queries
    Replies: 9
    Last Post: 11-19-2010, 03:32 PM
  4. Need Help with a very simple query
    By bikerguy06 in forum Queries
    Replies: 3
    Last Post: 06-08-2009, 08:43 PM
  5. Replies: 2
    Last Post: 03-31-2009, 11:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums