+ Reply to Thread
Results 1 to 3 of 3

Access query without duplicates

  1. #1
    Registered User
    Join Date
    06-13-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    20

    Access query without duplicates

    Hi,
    I have a question for my query in which I used the count option in the column "Pole1". Is it possible to add a criterion that would not count duplicate values?

    SELECT DISTINCT Count(Tabela1.Pole1) AS PoliczOfPole1
    FROM Tabela1;
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,029

    Re: Access query without duplicates

    Make Q1 to pull distinct on the column.
    Make Q2 to count(field) from Q1

  3. #3
    Registered User
    Join Date
    06-13-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    20

    Re: Access query without duplicates

    Thanks for your help, I still have a question for an Access form (continuous form), in which I wanted to enter values in one combo box, after pressing the save button, the values were added to all rows in the table.

    I tried to apply, but in continuous form the value was only assigned to the first row of the Person field

    Private Sub recommendation_Click()
    If (Not IsNull(Kombi.Value)) Then
    Me.Person = Me.Kombi
    End If
    End Sub
    Attached Files Attached Files
    Last edited by Maxlond; 02-26-2021 at 11:11 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  2. Running an access append query with parameters from Excel. Access version 2010
    By anthony1312002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2017, 04:48 PM
  3. Replies: 1
    Last Post: 09-08-2015, 08:12 PM
  4. Connection Issues, Excel To Access Query, Access 2010
    By onechief in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2015, 07:09 PM
  5. Importing Access query into Excel:Microsoft Query
    By ge0rge in forum Excel General
    Replies: 3
    Last Post: 04-02-2009, 10:51 AM
  6. Replies: 0
    Last Post: 03-19-2006, 08:50 PM
  7. Database Query-a query that reads data from MS Access
    By Osmar Mateus in forum Excel General
    Replies: 4
    Last Post: 01-29-2006, 04:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1