Results 1 to 2 of 2
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Null value in row in listbox

    I have a series of 5 columns in a listbox



    I was hoping to null the value in column 5 for the selected row

    so click on record 123 then makes record 123's column 5 value null

    note* not the whole column - just the one clicked on.

    To give an example I have:

    Code:
    strsql = "SELECT tblSchools.NewSchoolsID, tblSchools.SchoolName, tblSchools.SchoolSuburb, tblStates.SchoolState, tblSchools.ClusterID, tblSchools.AreaID, tblAreas.Area " & vbCrLf & _
    "FROM tblStates INNER JOIN (tblAreas INNER JOIN tblSchools ON tblAreas.AreasID = tblSchools.AreaID) ON tblStates.StateID = tblSchools.StateID " & vbCrLf & _
    "WHERE (((tblSchools.ClusterID)=" & Me.txtClusterID & ");"
    Me.List0.Requery
    in a listbox.

    I have a text box where what ever number is the same as in txtClusterID shows in the listbox.

    However I would like to clear whatever name is in that listbox by making the value of the row's clusterID null that way the form refreshes with one less.

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Nevermind - going with a subform...

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

Similar Threads

  1. Replies: 4
    Last Post: 06-24-2013, 07:34 AM
  2. Replies: 10
    Last Post: 06-18-2013, 02:00 PM
  3. Replies: 3
    Last Post: 12-13-2012, 04:40 AM
  4. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  5. Replies: 1
    Last Post: 07-26-2012, 11:45 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