Search results

  1. M

    Solved Access update query selects checkboxes

    This is the code that is working. Thank you. Private Sub cmdUpdate_Click() Dim strSQL As String strSQL = "UPDATE Students SET Students.UpdateWorkshop = -1 " strSQL = strSQL & "WHERE Students.[ID] IN " strSQL = strSQL & "(SELECT TOP " & CLng(Me.Textbox1) & " [ID] FROM Students As S " ' select...
  2. M

    Solved Access update query selects checkboxes

    June 7, I want you to know that your new code works, but it only checks the very 1st box . Making progress! Thank you
  3. M

    Solved Access update query selects checkboxes

    This is the latest SQL statement UPDATE Students SET Students.UpdateWorkshop = -1 WHERE Students.[ID] IN (SELECT TOP 5 [ID] FROM Students As S WHERE ([S.UpdateWorkshop]=false) AND ([S.Workshop]=Null) AND ([S.Major] In ('BADM', 'PBA')) AND ([S.Session]='1'));UPDATE Students SET...
  4. M

    Solved Access update query selects checkboxes

    I had a feeling that UpdateWorkshop checkbox value should be true or -1 or 0 Here is the result from the Immediate window for debug.print strSQL UPDATE Students SET Students.UpdateWorkshop = -1 WHERE Students.[ID] IN (SELECT TOP 5 [ID] FROM Students As S WHERE ([S.UpdateWorkshop]=false)...
  5. M

    Solved Access update query selects checkboxes

    I will work on building a sample DB.
  6. M

    Solved Access update query selects checkboxes

    Yes, I agree. I need a sample DB. I will try again to build one. I will also review my data. I closed the other thread. It was getting too LONG>
  7. M

    Solved Access update query selects checkboxes

    Current error message: Run Time Error 3464: Data Type Mismatch in criteria expression. My questions are below Module1 code A value is entered in the Textbox1 (on a subform) and a button run this code and fails due to Run Time Error 3464: Data Type Mismatch in criteria expression Private Sub...
  8. M

    Solved Use Textbox value in a Loop

    I want to thank each coder that has been assisting me. This underlying thread is not solved but I marking this thread solved. I will be opening new thread with details of the current direction of this issue. Again, thank you
  9. M

    Solved Use Textbox value in a Loop

    Here is the database documentation for the students table
  10. M

    Solved Use Textbox value in a Loop

    Please send me the link with the instructions for prepping a DB for uploading. I ran across a few days ago and now I can't find it :(
  11. M

    Solved Use Textbox value in a Loop

    Access 2016. As I am working in Access 2016 MS Visual Basic for Applications soI am not sure where my references window is. Here is my workspace showing the Function fExecuteQuery.... below is the same space for the for the cmdUpdate code.
  12. M

    Solved Use Textbox value in a Loop

    You called it right. There were two modules with the same code. Now when I trigger Module1 fExecuteQuery....., results in a compile error. user-defined type not defined (these lines are highlighted when the error message dialog appears). Function fExecuteQuery(strQuery As String, _...
  13. M

    Solved Use Textbox value in a Loop

    let me know if this will not work for you.
  14. M

    Solved Use Textbox value in a Loop

    I will have to remove objects next as I already did compact it. I will read the instructions for prepping files and uploading to this forum
  15. M

    Solved Use Textbox value in a Loop

    File is too large to upload. Can you access it from here? https://uoregon-my.sharepoint.com/:u:/r/personal/mreniff_uoregon_edu/Documents/Access%20Forum-%20micron/2020%20Introducktion%20MASTER.zip?csf=1&e=9beepn
  16. M

    Solved Use Textbox value in a Loop

    Give me a few minutes to make a stripped down version
  17. M

    Solved Use Textbox value in a Loop

    Give me a few minutes to make a stripped down version
  18. M

    Solved Use Textbox value in a Loop

    Thank you for being so patient with me. I followed your instructions. I pasted the code from http://www.accessmvp.com/thedbguy/codes.php?title=execqry and saved it as Module1. My code is a follows: Private Sub cmdUpdate_Click() Dim strSQL As String strSQL = "UPDATE Students SET...
  19. M

    Solved Use Textbox value in a Loop

    Thank you. I am grateful for your help, but this is just too far passed my skills level. I will continue with the original code
Top Bottom