Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Review http://access.mvps.org/Access/lookupfields.htm

    QA_Log should relate to QA_ScoreLog. It is the second link of QA_Log_1 to QA_ScoreLog that is anomalous. I haven't found why Access insists on creating that link. Something in one of the queries or lookups probably. It is preventing setting Cascade Delete on the valid link between the two tables.

    The macro wants to open a query ActiveCriteria which doesn't exist. Another thing I have to work around.



    The INSERT query errors. Records are created but the CriteriaID won't populate. Change the insert query to reference CriteriaID instead of Description.

    You are seeing those funky characters when you view the insert query in Datasheet. Don't do that or just ignore them. The query runs fine with the above correction.

    I have never run a dynamic INSERT query object so never noticed this before. I have always constructed these SQL actions in VBA.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    Jake0254 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2019
    Posts
    12
    Thanks both! I was so focused on the dodgy symbol I didn't even get to start looking at other fields, but thats resolved that issue. Have sorted those relationship problems too - thanks again.

    I now have a new issue - sorry to be a pest!

    So now that I'm appending the criteria to the QAScoreLog, I need to have a continuous form that displays the appropriate criteria - this is working fine. I now need to create comboboxes that display the options for that criteria, i.e. either a combobox with options 'Yes;No;N/A' or a combobox with options 'pass;fail;n/a' etc. How would I best get this data into a combobox?

    Thanks!

  3. #18
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Use a value list with those values for your combo
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #19
    Jake0254 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2019
    Posts
    12
    Sorry whats a value list

    For clarity, this option would have to work on a continuous form where the first 'form' might have a different combobox list to the next..

  5. #20
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Its one of the three choices you get when using the combo wizard.
    Choose 'i will type the values I want' then add what you want to appear.
    Do that for each combo.
    Another method is to grab the values from a table or query. That might work for you as well.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I think you have a table that defines the response options for each question. Set combobox RowSource with an SQL statement that has a WHERE clause. Then will likely require code in combobox GotFocus event to Requery the combobox.

    Conditional combobox is a very common topic.

    Keep in mind that conditional (or cascading/dependent) comboboxes with lookup alias don't work nicely on Continuous or Datasheet form. As long as you save actual descriptive value and not a key, should be fine.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #22
    Jake0254 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2019
    Posts
    12
    Quote Originally Posted by June7 View Post
    I think you have a table that defines the response options for each question. Set combobox RowSource with an SQL statement that has a WHERE clause. Then will likely require code in combobox GotFocus event to Requery the combobox.

    Conditional combobox is a very common topic.

    Keep in mind that conditional (or cascading/dependent) comboboxes with lookup alias don't work nicely on Continuous or Datasheet form. As long as you save actual descriptive value and not a key, should be fine.
    Thanks June that's exactly what I'm looking for - if I re-query though won't it change those that have already been selected and therefore remove their value?

  8. #23
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Requery of combobox list does not impact what is already saved into record. However, as noted, if combobox uses alias then the alias will not display when the list does not have that item. The saved key is still in table, but alias text is not available for display.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Ideas?
    By Voodeux2014 in forum Forms
    Replies: 8
    Last Post: 12-18-2014, 04:11 PM
  2. Need Ideas..
    By athyeh in forum Access
    Replies: 3
    Last Post: 06-26-2013, 11:34 AM
  3. Need your ideas and help...
    By Daryl2106 in forum Access
    Replies: 8
    Last Post: 04-05-2012, 01:00 PM
  4. Any ideas?
    By eripsni in forum Access
    Replies: 9
    Last Post: 08-25-2011, 08:33 AM
  5. Need some ideas
    By amauricio2 in forum Database Design
    Replies: 0
    Last Post: 03-02-2009, 11:03 AM

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