Results 1 to 2 of 2
  1. #1
    2410Davie is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2016
    Posts
    14

    Checkbox to show/unshow data help

    Hi Guys/Girls



    Me again, this time I need help with my checkbox again, I got it sorted so that when checked it puts a date into the 'Issued Date' box and when unchecked it removes that date which works great now.

    What I also want to do is when the check box is unchecked is to show a text box that says "Available" and when checked this is not visable, the reason is when a box is checked it means keys have been handed out and when returned its unchecked and they then become available again. I have managed to get it to show and hide my text box based on the check box but the issue is when checked it shows the whole column for this text box and when unchecked it hides then all and not just for the one that the checkbox has been ticked/unticked for?? it works for the date part so dont know why it doesnt work for this?

    This is what I have just now




    Code:
    Private Sub Issued_AfterUpdate()
    If (Me.Issued) = -1 Then
    Me.Issued_Date = Now()
    Me.Text22.Visible = True
    
    
    Else
    Me.Issued_Date = Null
    Me.Issued_By = Null
    Me.Issued_To = Null
    Me.Text22.Visible = False
    
    
    End If
    End Sub

    thanks for any help

    Davie

  2. #2
    2410Davie is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2016
    Posts
    14
    Solved I didnt have the field in the actual table DOH!! now its added it works great

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

Similar Threads

  1. Show Checkbox when listbox item is selected
    By gammaman in forum Modules
    Replies: 5
    Last Post: 06-04-2015, 09:46 AM
  2. Criteria to show checkbox value
    By keithb in forum Queries
    Replies: 5
    Last Post: 01-31-2015, 02:14 PM
  3. How to unshow emty(new) record in form
    By Onsmak in forum Forms
    Replies: 3
    Last Post: 12-14-2014, 05:31 PM
  4. Replies: 1
    Last Post: 11-26-2014, 02:30 PM
  5. Show/Unshow Columns in Query
    By simmurray in forum Queries
    Replies: 0
    Last Post: 03-28-2009, 10: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