Results 1 to 2 of 2
  1. #1
    arunmc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    1

    "Edit Query" and "Parameters.." both were grayed out in Excel 2010

    Im using Office 2010 and now I cannot edit existing query and Parameter both buttons are grayed out. Below are the steps I folllowed.

    My requirement is to fect the data from oracle database from Excel. by passing the three parameters.
    1. string
    2 and 3 are Dates parameters.


    steps followed to archive:

    1. set uped the ODBC connection in Control panel.
    2. Now back to Excel, open any excel workbook and select Data > From Other Sources > From Data Connection Wizard
    3. selected --> Other Advanced and then “Microsoft OLE DB Provider for Oracle”


    4. updated the connection string
    5. and Command text
    as
    SELECT * FROM xx_salinfo a, xx_ivcinfo b
    WHERE a.num = b.cd
    AND a.status = NVL(Upper(''''||?||'''',a.status ) -- parameter1
    AND so_wr_dt BETWEEN NVL(''''||?'||''', 01-JAN-05) AND NVL(''''||?||'''', 01-JAN-15) -- parameter2 and 3

    But from here I have problem "Edit Query" and "Parameters.." both were grayed out. so im not able to pass/tag the cells values into the parameters.

    please help me , how to fix it.


    Note: This works fine without parameters. So, nothing wrong in steps.

    Thanx,
    Arun

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    See if you can fill parameters by building the sql again from Access using linked tables.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-05-2015, 05:41 PM
  2. Execute, "Too few parameters", "Expected 2"
    By jhrBanker in forum Forms
    Replies: 3
    Last Post: 10-30-2014, 02:18 PM
  3. "Decrease Vertical" grayed out on form
    By kelann in forum Forms
    Replies: 7
    Last Post: 10-26-2012, 01:43 PM
  4. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  5. Replies: 2
    Last Post: 11-04-2011, 02:45 AM

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