Results 1 to 3 of 3
  1. #1
    floyd is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    66

    Which Control Source is correct?

    I have three different control source codes and none of them are working as they should.



    This one allows the form to run... but I can't get the three list boxes to populate.
    Code:
    SELECT Item.[Input Date], Item.Item, Item.Description, Item.[File Location], Item.[File Name] 
    FROM ((Item INNER JOIN (datAud INNER JOIN tblAud ON datAud.aud = tblAud.[Audience].Value) ON Item.InputID = tblAud.[Input ID]) INNER JOIN (datTopic INNER JOIN tbltopic ON datTopic.topic = tbltopic.Topic.Value) ON Item.InputID = tbltopic.InputID) INNER JOIN (datType INNER JOIN tbltype ON datType.type = tbltype.Type.Value) ON Item.InputID = tbltype.InputID;
    The next two don't allow the form to pull up at all.
    Code:
    SELECT Item.[Input Date], Item.Item, Item.Description, Item.[File Location], Item.[File Name], datAud.aud, datTopic.topic, datType.type
    FROM ((Item INNER JOIN (datAud INNER JOIN tblAud ON datAud.aud = tblaud.[Audience].Value) ON Item.InputID = tblaud.[Input ID]) INNER JOIN (datTopic INNER JOIN tbltopic ON datTopic.topic = tbltopic.Topic.Value) ON Item.InputID = tbltopic.InputID) INNER JOIN (datType INNER JOIN tbltype ON datType.type = tbltype.Type.Value) ON Item.InputID = tbltype.InputID;
    Code:
    SELECT Item.[Input Date], Item.Item, Item.Description, Item.[File Location], Item.[File Name], tblaud.Audience, tbltype.Type, tbltopic.Topic
    FROM ((Item INNER JOIN (datAud INNER JOIN tblAud ON datAud.aud = tblaud.[Audience].Value) ON Item.InputID = tblaud.[Input ID]) INNER JOIN (datTopic INNER JOIN tbltopic ON datTopic.topic = tbltopic.Topic.Value) ON Item.InputID = tbltopic.InputID) INNER JOIN (datType INNER JOIN tbltype ON datType.type = tbltype.Type.Value) ON Item.InputID = tbltype.InputID;
    I'm trying to get the multiple choice list boxes to work. I have been working on it since 6am.
    Any help would be appreciated.

    This is my form:

    Click image for larger version. 

Name:	form.jpg 
Views:	6 
Size:	67.7 KB 
ID:	13503

    These are my relationships
    Click image for larger version. 

Name:	relationships.jpg 
Views:	5 
Size:	68.5 KB 
ID:	13504

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Please clarify what the select statements are record sources for - are they different versions for the Form Record Source (which is what they look like) ?

    If when you say the form "does not pull up at all" you mean the form opens but is completely blank, it means there are no records for the form to display; in other words the Record source for the form (your select statements?) did not identify any records.

    What is it you want the list boxes to contain? Your data structure indicates you should be using a form-subform arrangement, rather than listboxes. Also, what is it that you want the form to do? As you have it now, it won't do much more than display data.

  3. #3
    floyd is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    66
    Let me take these one at a time for you. (Thank you for the help before I get started)

    Let me explain what I am trying to do and that may help.

    Click image for larger version. 

Name:	relationships2.jpg 
Views:	7 
Size:	56.4 KB 
ID:	13507

    This is my first shot at creating a database... and a relational database at that.

    Please clarify what the select statements are record sources for - The statements are "record sources" in the input form for the purpose of:
    1. Allowing the tblAud / tblType / tblTopic (tbl-databases) to access their associated data in the datAud / datType / datTopic areas (dat-databases)
    2. Allowing the multi-list boxes to then associate and input the data from the form.


    Are they different versions for the Form Record Source (which is what they look like - I believe the answer here is YES. Each of the three tbl-databases link to lists of common data.

    If when you say the form "does not pull up at all" you mean the form opens but is completely blank -
    Blank meaning, there is no FORM. The only think I see is the header.

    What is it you want the list boxes to contain? - Information from datAud / datType / datTopic

    Also, what is it that you want the form to do? As you have it now, it won't do much more than display data. - The form currently correctly inputs information from only the Item database. I am wanting it to also associate and input information from the various input boxes.

    I hope this helps me to explain.

    Joe

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

Similar Threads

  1. Replies: 10
    Last Post: 06-03-2013, 10:24 AM
  2. Help with Control Source
    By love2waltz in forum Access
    Replies: 1
    Last Post: 05-18-2012, 01:09 PM
  3. Replies: 5
    Last Post: 10-13-2011, 03:36 PM
  4. control source
    By nashr1928 in forum Forms
    Replies: 5
    Last Post: 03-12-2011, 09:31 PM
  5. Control Source
    By sarah54 in forum Access
    Replies: 1
    Last Post: 03-07-2011, 09:00 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