Recent content by sougata666

  1. S

    Unique query problem

    So I have to feed that Table (CustomerandProduct) manually? Kind of makes Access useless for me that way. Surely there must be a way out of this. Some advanced query perhaps? This is like the Access equivalent of brute force. Thank you for your answers though. How about using NOT EXISTS, NOT IN...
  2. S

    Unique query problem

    That's not possible. This is just a sample db to simulate the problem. My actual db is larger and more complex. I can't do away with lookup fields where new names, products can be added. Involves a proper front end with forms & vb codes.
  3. S

    Unique query problem

    The file has been uploaded.
  4. S

    Unique query problem

    Ok. Query designed as follows: SELECT Table1.Customer, Table2.Product, Table3.ID FROM Table1,Table2,Table3; table3 has two fields: customer and product (both are lookup fields) Now, if I select this query and the linked table (table3) in the Unmatched Query wizard (with the link being the...
  5. S

    Unique query problem

    Suppose there are two tables - customer and product. Also available is customerproduct (linked table containing customers and the products they bought).i want to design a query which will list products NOT bought by a customer i.e. each customer will be listed with products not bought by him...
  6. S

    Nesting JOIN syntax error

    Thanks for looking through it. I worked it out somewhat by using two different queries (top part and bottom part) and then creating a third query get the result. You are right, I have used too many parentheses making it unreadable. Query 1: SELECT Aviator.Number FROM Aviator INNER JOIN...
  7. S

    Nesting JOIN syntax error

    (SELECT Aviator.Prefix, Aviator.Number, Aviator.DateOfSeniority, Year([DateofSeniority]) FROM (Aviator INNER JOIN AviatorCourse ON Aviator.ID = AviatorCourse.AviatorID) WHERE (((AviatorCourse.CourseName)=9) AND ((Year([DateofSeniority]))=2007)))) LEFT JOIN (SELECT Aviator.Prefix...
  8. S

    Applying filter to same field

    Can INTERSECT help? How will I implement it in this example? I guess I will have to use INNER JOIN in access but how?
  9. S

    Applying filter to same field

    I am sure there must be a solution this. Is there an SQL statement I can use as my search string which will get me the result?
  10. S

    Applying filter to same field

    Yes. That's the issue. Since the checkboxes refer to the same field, I am not able to use the AND logic properly. I had done the debug thing too.
  11. S

    Applying filter to same field

    There is a junction table called tblNameItem which is recording what you have written. The query is based on that table.
  12. S

    Applying filter to same field

    Why couldn't you open the file? it is small enough. Saved in Access 2013. I have attached them again in older formats. test.mdb is in access 2000 format. The other one is in 2003 format.
  13. S

    Applying filter to same field

    query SQL: SELECT tblNameItem.User, tblNameItem.Item FROM tblNameItem; Report SQL (recordsource): SELECT tblNameItem.User, tblNameItem.Item FROM tblNameItem; VB code: Private Sub cmdOK_Click() Dim SearchString As String Dim LengthOfString As Integer If Me.chkBox = -1 Then...
  14. S

    Applying filter to same field

    I must emphasize that the logic should be "AND" for checkboxes and not "OR"
  15. S

    Applying filter to same field

    Ok. I am attaching the small database. I have removed the user combo box. Individual check boxes work. But when I select two boxes, the report is blank.
Back
Top Bottom