Access 2013 - Query showing all/* fields by default!

hi - does anyone know why my queries are pulling ALL the fields from a table even though I am only selecting a couple of fields?
Here's the steps to recreate:
Create, Query Design
add table
drag a couple of fields to display
So then it shows me ALL the fields in table, so I have to go into SQL and take off the * after Select statement:
SELECT T_CONTACT.name_last, T_CONTACT.birthday, *
FROM T_CONTACT;
but I did not drag the * into my query design!
Help - this is super annoying!
thanks!

Open the query in design view.
Click in an empty part of the upper pane of the query design window.
If necessary, activate the Property Sheet (F4).
Set the 'Output All Fields' property to No:
You can turn this off as default setting:
Select File > Options.
Click Object Designers in the navigation pane on the left hand side.
Clear the check box "Output all fields" in the "Query design" section.
Click OK.
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • How to show all records by default on search result page?

    Hi
    I am trying to make a search page that would execute the search in the database based on one or more field constraints.
    (Using MySQL,PHP)
    I have  2 columns in the database "vm_ip" (primary key) <IP address>, "Operating_System" <Any, Windows, Solaris, AIX>
    need to search vm_ip based on other two fields.
    PROBLEM: Need to show all the record when I select "Any" in the Operating_System  drop down menu.
    <p>Operating System:
        <select name="os_select" id="os_select">
        <?php
    $os_count=1;
    foreach($os_type as $value) //(os_type is array with possible values of OS)
    echo "<option value=".$os_count.">".$value."</option>";
        $os_count++;
    ?>
          <option value=" " selected="selected">Any</option>
        </select>
      </p>
    this code POSts  NULL value to the search page.
    Below code is of recordset on  search page
    $varOS_virtual = "Operating_System"; // recordset variable set to same as column name (default value)
    if (isset($_POST['os_select'])) //this should not be true
      $varOS_virtual = $_POST['os_select'];
    mysql_select_db($database_xyz_db, $xyz_db);
    $query_virtual = sprintf("SELECT table.VM_IP FROM table
    WHERE table.Operating_System=%s", GetSQLValueString($varOS_virtual, "int"));
    $virtual = mysql_query($query_virtual, $xyz_db) or die(mysql_error());
    $row_virtual = mysql_fetch_assoc($virtual);
    $totalRows_virtual = mysql_num_rows($virtual);
    I expected the 'os_select' field to be null and default value of Operating_System to be "Operating_System" so that the Query shows all records.
    But instead the value being passed in the Query is "0". and no records are shown.
    What can I do to show all records?
    As probably obvious I am new to php/MySQL so all the help is most welcomed .
    Thanks

    Hi
    Thanks for the prompt reply but this does not solve my problem.
    First thing I appologise for giving you incorrect info. Actually I have many more constraints on the search apart from OS.
    Didn't think I would get single constraint specific ans.
    Here is what all i tried and problems I faced:
    1. I cannot use seperate queries cause I have around 7-8 other constraints on the search.
    2. I cannot play around with the Record set code. For some reason even if I mess with it a little bit Dreamweaver stops recognising the recordset. for eg i tried the below code:
    $query_virtual = sprintf("SELECT table.VM_IP FROM table WHERE
    table.Operating_System=%s ,($_POST['os_select']=="")? TRUE:GetSQLValueString($varOS_virtual, "int"));
    this ran well for the first time, and then the record set was screwed up. kept on asking me to "Discover" the links, which it couldn't do.
    3.  take a look at this code:
    $varOS_virtual = "Operating_System";
    if (isset($_POST['os_select'])) {
      $varOS_virtual = $_POST['os_select'];
    $varState_virtual = "State";               //second constraint
    if (isset($_POST['state_select'])) {
      $varState_virtual = $_POST['state_select'];
    mysql_select_db($database_xyz, $xyz);
    $query_virtual = sprintf("SELECT table.VM_IP FROM table AND table.Operating_System=%s AND State=%s",
    GetSQLValueString($varOS_virtual, "int"),GetSQLValueString($varState_virtual, "int"));
    $virtual = mysql_query($query_virtual, $xyz) or die(mysql_error());
    $row_virtual = mysql_fetch_assoc($virtual);
    $totalRows_virtual = mysql_num_rows($virtual);
    here on passing NULL value for "Any"  GetSQLValueString($varOS_virtual, "int") functions returns NULL and though the Default value of
    varOS is set to 'Operating_System" query takes NULL value only which when executed shows no records.
    My problem majorly revolves around how to put something like "WHERE Operating_System= Operating_System" OR  "WHERE Operating_System= TRUE" in the query, when passed through variable they are sent as Strings or NULL.
    Thats why WHERE 1=1 also doesnt work, because it has "WHERE Operating_System= NULL" in AND.
    Logically when NULL is passed default value of variable should comeinto picture, but tha isnt happening.
    Thanks again for answering. hope I was able to explain my problem.

  • How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables

    Hi Everyone,
    Iam stuck with 1 problem please can any 1 help me if u know the solution.
    Here is my problem:
    How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
    For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
    And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • Transported table not showing all fields

    dear all
    can u plz help me i have transported a table but its not showing all fileds. whatcan i doto make it show all fields in the table
    Regards
    Flo

    Hi,
    Are there any custom data elements used in the table.
    if so, is all the data elements transported to the table
    first all the data elements to be transported and then the table should be transported if in case they are
    in different transports.
    Regards,
    Venkatesh

  • Open Orders Query showing all open AP Orders

    Hi All,
    I wish to generate a report that shows all open AP Purchase Orders as well as all orders that are partially inviced.
    I have been using the following query but it is not giving me complete results:
    SELECT
    T1.[DocNum] AS 'PO NUMBER',
    T1.[DocDate] AS 'POSTING DATE',
    T1.[DocDueDate] AS 'DUE DATE',
    T1.[TaxDate] AS 'DOC DATE',
    T1.[Comments] AS 'REMARKS',
    T1.[CardCode] AS 'CUSTOMER/VENDOR CODE',
    T1.[CardName] AS 'CUSTOMER/VENDOR NAME',
    T0.[LineTotal] AS 'LINE TOTAL',
    T0.[OcrCode] AS 'PROFIT CENTER',
    T1.[PaidSum] AS 'PAID',
    T0.[Project] AS 'PROJECT CODE',
    T0.[LineNum] AS 'ROW NUMBER',
    T0.[LineStatus] AS 'LINE STATUS',
    T1.[DocStatus] AS 'PR STATUS'
    FROM
    POR1 T0  INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry
    WHERE
    T1.DOCSTATUS <>'C'
    AND
    T0.LineStatus <> 'C'
    ORDER BY T1.docentry
    I need to add to this query a column to show PO's that have been partially invoiced, a column to show if the invoices have been paid and another column to show the balances for those particular orders.
    HELP PLEASE!
    Robinson

    Thanks Carin,
    That was very helpful, BUT:
    1. I still wish to view all open orders that have been partially invoiced
    2. I still wish to see all the Purchase Orders that have been partially invoiced and paid
    3. I finally want to see the balances for these Purchase Orders that have been partially invoiced.
    I don't seem to find the correct fields containing the information. So far all that I was able to establish is that OPOR.DocTotal is the total amount for the Purchase Order. However, OPOR.PaidToDate does not give an accurate value of what is invoiced or paid.
    I wish to add the following fields. A field showing the corresponding Invoice number for the partially invoiced order, the amount paid for that PO and the balance.
    Thank you.
    Robinson

  • Query showing all values

    Hi,
    I want to build a query which shows all accounts. What I mean even if there is a 0 value for that account in that period i want to see all the values for the account number.
    Can anyone help me?
    Thanks

    Hello Abhi,
    if you set the setting "Access Type for Result Values" to "Master Data" in the properties of your account characteristic in the Query Designer you should see all the accounts from your master data table even the ones that have no values in the cube. Is this what you want to do?
    For more details please check here:
    http://help.sap.com/saphelp_nw70/helpdata/en/f0/95bc272b9e4e4b85cdcef59c37d55d/frameset.htm
    Regards,
    Maxim

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • How to make "Show All" folders the default in Finder

    I recently upgraded to Mountain Lion and I'm having a lot of problems customizing my Finder folders to my liking. I love the new "Arrange By..." function, but the only thing that's bothering me is having to manually click "Show All" for my folders and files every time. Is there any way of making this the default setting?
    If not, is there an alternative way for keeping my folders locked in a set order? For example if I have the a main folder and within it are the subfolders "Art" "Music" "Photos" "Misc" can I have them so they always show up in that order and won't rearrange themselves everytime I add new files into the folder?
    I hope that question makes sense.
    I am referring to that Show All button just to be clear

    Hello Joe63, use the specific plugin from Mycroft Project
    * eBay UK en-GB (ebay.co.uk) by Mycroft Project [Review]
    see: http://mycroftproject.com/ebay-search-plugins.html
    thank you

  • Why the ALV download Excel can't show all field title?

    Dear All
             I have a problem for ALV download to Excel
    Example: the field  title description has 11 len bits when I download Excel then the field title is u2018descriptiou2019 only 10 len bits. I found when the field value is more then 11 then can show all,if the field value less than 11 then download Excel only show 10.
    The description has 40 bits.if itu2019s value less 40 then ALV CONDENSE the space .
    I removed this code: GT_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.but problem is also exits.
    How can I do ?
    Thanks

    Make sure you populate below, it may help you to solve your problem. 
    t_fieldcatalog-col_pos     = col_pos.
    t_fieldcatalog-outputlen   = out_len.
    Rgds,
    SaiRam

  • Forum question: How to set Show All Messages as default?

    I seem to remember there was a way to set this as a default, so that when one clicks on a topic, all new (unread) posts are shown. Currently, I only see a subset of the new postings, and I have to click on "Show All Messages" to see them all. The number shown initially seems to be arbitrary. I know that postings that I've read will not show up, but how can I get all unread postings to show by default?
    Thanks!
    Rafael

    R,
    For non-Photoshop/general forum questions, please post your concerns at: http://www.adobeforums.com/cgi-bin/webx?14@@.ee6b30e
    Thanks.
    Neil

  • Query showing all customers with or without transactions

    The content of the cube are all customers with transactions only.  I want to create a report that will display all the customers with or without transactions.  I tried to create a multiprovider combining the sales cube and customer master data.  I created a query but it only displays the customes with transactions.  Is there any other way wherein i can generate a report showing all customers with or without transactions?

    hi,
    the same problem happened, but no update whether it's solved, 'selection constant' should work
    Multiproviders and filter on time
    the link mentioned should be this
    http://help.sap.com/saphelp_nw04/helpdata/en/e7/5f983c1a356858e10000000a114084/content.htm
    Re: Determining NULL records

  • How to show all fields when we do not enter any data

    Hello all,
    Here i am creating the SSRS reports on SharePoint list data, Report is created successfully but the requirement is that when generation of report if i do not enter value of employee name that time .....I want the report must display all records of all employees.
    Please suggest me.... 

    Hi Anil,
    If I understand correctly, you have create a report use SharePoint list as the datasource. When you run the report, you need to enter value of employee name to display corresponding values.
    If we are use SharePoint list as datasource, we have two method to add parameter in the report.
    Method1: Add filter in the dataset Query Designer dialog box.
    In this situation, if we configure the filter with “(blank)” in the Value dialog box, we will get the situation as your post. In this method, we are get a single value parameter in the report.
    Method2: Add a dataset parameter. Please refer to the steps below:
    Create another dataset (DataSet2) in the report with EmployeeName field.
    Add a parameter (ReportParameter1) in the report. Select “Allow multiple values” option in the General dialog box.
    Click “Available Values” in the left pane, select “Get values from a query”. Please refer to the values below:
    Dataset:     DataSet2
    Value field:    EmployeeName
    Label field:    EmployeeName
    Click “Default Values” in the left pane, select “Get values from a query”. Please refer to the values below:
    Dataset:     DataSet2
    Value field:    EmployeeName
    Right click DataSet1, select DtaSet Properties. Click Filters in the left pane. Please refer to the values below:
    Expression:   [EmployeeName]
    Operator:    In
    Value:   [@ReportParameter1]
    Reference: http://msdn.microsoft.com/en-us/library/dd220464.aspx
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Unable to show all fields from a table\view within a SSRS Report Model for user selection

    I recently added a new view with a simple SELECT (with 3 fields) statement to our existing Report Model DSV. I then went ahead to the report model (.smdl) file proceeded with the auto-generation of the new attributes which of course ran with no issues.
    I was seeing the three new fields as attributes. But when I went within the existing Perspective to add the newly added fields so that the users see them, one of the field is missing. It is just a VARCHAR field. What would it cause this field to not show up
    within a Perspective?
    Any help is greatly appreciated.Thanks,
    Nimesh
    NM

    Hi NM,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • GROUP BY a single field, show all fields

    I have this table:
    CREATE TABLE Prices(ServiceType VARCHAR2(30), EffectiveDate DATE, Fee NUMBER, Commission NUMBER, PRIMARY KEY(ServiceType, EffectiveDate));
    I am trying to write an SQL query to get the ServiceTypes and Fees. However, I only want those with the most recent EffectiveDate.
    This is what I have so far:
    SELECT ServiceType, Fee, MAX(EffectiveDate) FROM Prices GROUP BY ServiceType;
    But that doesn't work because GROUP BY has to be followed by all selected attributes. Does anyone know how to write that query? Thanks in advance,
    Nader

    Why dont you use a sub query liek below:
    SELECT ServiceType
                , Fee
                , EffectiveDate
      FROM Prices    out
    WHERE EffectiveDate = ( SELECT MAX(EffectiveDate)
                                             FROM Prices   in
                                          WHERE in.ServiceType = out.ServiceType
                                               AND in.Fee              = out.Fee 
                                      GROUP BY ServiceType
                                                      , Fee
                                        );Regards
    Arun

  • Sql developer behavior, expands table.* to show all fields?

    Am I doing something wrong, or does sql developer (10g) have an odd behavior?
    If I create a view
    select mytable.* from mytable
    it saves the view like
    select mytable.myid, mytable.mycol1, mytable.mycol2 from mytable
    IE it replaces the mytable.* with a select clause that includes every column individually. I've never seen any sql editor do anything like this.

    I have never seen a sql editor make such massive changes to whatever one entered. It's not SQL Developer doing this, it's Oracle itself.
    Here I'm not using any editor, just SQL Plus (repeating Solomon's example):
    SQL> create view emp_v as select * from emp;
    View created.
    SQL> select view_name, text from user_views;
    VIEW_NAME                      TEXT
    EMP_V                          select "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" from empThis is also documented (indirectly) in the SQL Reference manual under CREATE VIEW:
    "If the subquery uses an asterisk (*) to select all columns of a table, and you later add new columns to the table, then the view will not contain those columns until you re-create the view by issuing a CREATE OR REPLACE VIEW statement."
    That's because the "select *" is expanded to explicitly name all the columns when the view is created.

Maybe you are looking for

  • Trying to use Java Stored Procedure to create  directories

    Hello, I have the followqing simple Java code I am using to run OS commands from PL SQL. When I call my function, it does not create the directory, but it does say completed successfully. Here is the code and the call I am using: CREATE OR REPLACE AN

  • Trying to contact Mozilla Toronto about job posting

    LinkedIn has informed my of a job posting in your Toronto office. (see below) Manager, Finance and Administration Mozilla - Toronto Posted 23 hours ago When I click the link, I get to.... Oops, we must have moved it. 404 Error I don't know where I le

  • Net attached driver backup by rman

    Hi Experts, For space issue, I try to back up at net attached driver Z from local driver D. I configraure net driver in rmam. it works.But i got below message when I take a full back up . RMAN> CONFIGURE CHANNEL DEVICE TYPE disk format 'Z:\Oracleback

  • Sony A900 cRAW cardreader import oddness

    I am trying to get to the bottom of what is going wrong with importing directly from a USB 2 card reader with Sony A900 cRAW files. If I copy the cRAW files to a folder on the Desktop using the Finder, then I can import the files into Aperture easily

  • Administrator user became standard now there is no way back

    I have been one of the lucky souls that after upgrading from 10.4 to 10.5 my user which was had admin rights has reverted to a standard one. Countless attempts to make it an administrator user have failed. I've logged in as root, changed the field in