Results 1 to 5 of 5
  1. #1
    natonstan is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    37

    Help Regarding List form linked showing specific information in my table

    Click image for larger version. 

Name:	table.jpg 
Views:	4 
Size:	84.0 KB 
ID:	18513
    Firstly here's my table, as you can see I have a list of countries and a list of "Disallowed suppliers".


    Click image for larger version. 

Name:	CountriesPage.jpg 
Views:	4 
Size:	104.7 KB 
ID:	18514
    Now on the list I have on the right I want the specific countries suppliers to be displayed, as you can see I managed to do it with the country name and currency as I'm using a single form linked to a table.

    Click image for larger version. 

Name:	DesignView.jpg 
Views:	4 
Size:	168.1 KB 
ID:	18515
    Here's the form in Design View so you can get an idea of what I was trying to do, basically as you can see it's simply showing the whole "Disallowed" column from my table, can anyone help me with a query to run or maybe some code that will only display the specific data found in that countries cell?

    Thanks in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Your query must reference the country shown in the form:


    qry.sql = Select * from tDisallowed where [country] = '" & forms!frmCountryDetail!Country & "'"

  3. #3
    natonstan is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    37
    Quote Originally Posted by ranman256 View Post
    Your query must reference the country shown in the form:


    qry.sql = Select * from tDisallowed where [country] = '" & forms!frmCountryDetail!Country & "'"
    I'm COMPLETELY new to SQL sorry, is there any chance you could give me the exact Query I should run?

    I figured it would be a problem with my actual query but just had no idea what it should be exactly
    Click image for larger version. 

Name:	error.jpg 
Views:	2 
Size:	76.7 KB 
ID:	18516

  4. #4
    natonstan is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    37
    Click image for larger version. 

Name:	Country.jpg 
Views:	2 
Size:	163.3 KB 
ID:	18517

    Here's the details for the Country box, and I've tried using both [Country] and [txtCountry] in my query, but still get the same error

  5. #5
    natonstan is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2014
    Posts
    37
    Sorry for posting again. I figured it might make things easier if I moved it over to the same table, here's my new table and I have the "Disallowed" field on there.

    Click image for larger version. 

Name:	Table.jpg 
Views:	2 
Size:	224.2 KB 
ID:	18519

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

Similar Threads

  1. Table/Linked Table with Specific number of rows
    By vik808 in forum Database Design
    Replies: 3
    Last Post: 01-03-2013, 02:02 PM
  2. Linked Excel Table Showing Wrong Value
    By lukejc1 in forum Import/Export Data
    Replies: 1
    Last Post: 11-21-2012, 10:37 AM
  3. Replies: 1
    Last Post: 09-12-2012, 12:44 PM
  4. Replies: 3
    Last Post: 01-03-2012, 12:28 PM
  5. Form not showing information in querry
    By srmezick in forum Forms
    Replies: 3
    Last Post: 11-15-2011, 01:39 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