Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    zac123 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    17
    thanks again.

    i think you might be seeing me more often on here

  2. #17
    peasoup42 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    2
    zac123-

    It's been almost 4 years since you figured this out and I'm hoping that you're still on here. :-)

    The references you put, chk_, lbl_, txt_, did you make the fields in the database that name? Is this something that the code assigns? I'm new to Access, and I'm trying to figure out basically the same action (click a check box and the appropriate data entry boxes and labels appear on the form). Here's my names:

    Database name: Table1
    Form Name: Add Event
    Check box name: CinderTM
    Data box labels to appear: Cinder1C-Freq, Cinder1C-Bits, Cinder1C-Mod, Cinder1C_Ext_Data_Dest1, Cinder1C_Ext_Data_Dest2,....Dest5
    Data box field to appear: Cinder1C-Freq, Cinder1C-Bits, Cinder1C-Mod, Cinder1C_Ext_Data_Dest1 (Checkbox),....Dest5

    Much appreciated as I've been beating my head on my desk for days now. Labels & Data boxes constantly appear and can't hide them.

    Steve

    Option Compare Database
    Option Explicit

    Private Sub chk_AlarmResponse_AfterUpdate()
    If Me![chk_AlarmResponse] = -1 Then
    Me![txt_CallReceived].Visible = True
    Me![lbl_CallReceived].Visible = True
    Else
    Me![txt_CallReceived].Visible = False
    Me![lbl_CallReceived].Visible = False
    End If
    End Sub

    Private Sub Form_Current()
    If Me![chk_AlarmResponse] = -1 Then
    Me![txt_CallReceived].Visible = True
    Me![lbl_CallReceived].Visible = True
    Else
    Me![txt_CallReceived].Visible = False
    Me![lbl_CallReceived].Visible = False
    End If
    End Sub

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

Similar Threads

  1. Replies: 2
    Last Post: 07-31-2011, 04:03 AM
  2. Show selected records in subform
    By Papilion in forum Forms
    Replies: 8
    Last Post: 06-18-2011, 07:41 AM
  3. Replies: 1
    Last Post: 08-17-2010, 02:33 PM
  4. Replies: 1
    Last Post: 03-13-2010, 08:38 PM
  5. hide text box till you un-tick check box
    By islandboy in forum Access
    Replies: 14
    Last Post: 09-06-2009, 10:08 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