Results 1 to 4 of 4
  1. #1
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276

    How Can I format in SQL

    I want to format the following in SQL



    SELECT [000005King].PurCoId, [000005King].PurCompanyName, [000005King].SumOfBalAmt, [000005King].TrueBal
    FROM 000005King;


    I want the following to Show as Rs. Not $

    [000005King].SumOfBalAmt
    [000005King].TrueBal

    I don't know how to fit "Rs. "#,##0.00;"(Rs."#,##0.00) in the above SQL statement.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    What is RS?
    anyway, in the query,right click the field, Format, set how you want.

  3. #3
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276
    Rs is Rupees (currency)

    I know how to do in query but this was a part of union query. Following is the complete union query.

    SELECT [000006CCBPL].PurCoId, [000006CCBPL].PurCompanyName, [000006CCBPL].CCBPLBal, [000006CCBPL].TrueBal
    FROM 000006CCBPL;
    UNION ALL SELECT [000005King].PurCoId, [000005King].PurCompanyName, [000005King].SumOfBalAmt, [000005King].TrueBal
    FROM 000005King;

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Make another query based on your union query, and format the data there.

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

Similar Threads

  1. Replies: 0
    Last Post: 11-19-2014, 05:47 AM
  2. Replies: 3
    Last Post: 09-07-2013, 04:59 PM
  3. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  4. Number Format to General Format
    By mkc80 in forum Access
    Replies: 2
    Last Post: 05-05-2012, 02:10 AM
  5. Replies: 3
    Last Post: 03-05-2012, 04:06 PM

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