Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2012
    Posts
    13

    Update Form & Combobox Issues

    Greetings,
    I'm having an issue with two similar forms which change the status of Instructors and Students from 'Atcive' to 'Inactive' with a checkbox, See attached Form Issue ZIP file.
    Whenever a student's or Instructor's status is changed, the name is written over with the table's ID number.
    I've tried several times to modify both the form and combobox's data tab properties, but I can't seem to get it right.
    Any help is appreciated.
    Mark
    Attached Files Attached Files

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845

  3. #3
    Join Date
    Aug 2012
    Posts
    13
    Quote Originally Posted by Ajax View Post

    This is cross posted here:
    http://www.utteraccess.com/forum/ind...0#entry2539421
    and here:
    http://www.access-programmers.co.uk/...d.php?t=277799
    Thank you CJ_London for setting me straight.

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    Looks like UA have provided answers so I would stick them - they are giving good advice.

  5. #5
    Join Date
    Aug 2012
    Posts
    13
    Greetings all,
    tina t on utteraccess http://www.utteraccess.com/forum/ind...howuser=178721 said it clear enough for me to understand.
    Make the combo box unbound, and then add code in the After Update event to point to the record to be modified.
    After further digging, I found some references to the Combobox wizard to point to a specific record.
    I created a new form and set its source to one of the tables. Made a combbox with the wizard and got the code
    Code:
        ' Find the record that matches the control.
        Dim rs As Object
    
    
        Set rs = Me.Recordset.Clone
        rs.FindFirst "[Student_ID] = " & Str(Nz(Me![Combobox_Name], 0))
        If Not rs.EOF Then Me.Bookmark = rs.Bookmark
    After renaming the unbound comboboxes, the code was placed in the proper place.
    Now, both forms work as expected.


    From this point on, I will try to be as possible, and if I cross post, will clearly indicate with the appropriate links.
    With gratitude,
    Mark

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

Similar Threads

  1. Replies: 3
    Last Post: 03-17-2014, 12:51 PM
  2. Replies: 4
    Last Post: 08-25-2013, 07:43 AM
  3. Replies: 1
    Last Post: 08-14-2013, 04:09 PM
  4. Replies: 2
    Last Post: 04-25-2013, 06:07 AM
  5. Replies: 6
    Last Post: 07-28-2011, 04:07 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