Making text boxes visible with a combobox
From: Jeff (JeffKlein_at_Associatedoffices.com)
Date: 08/24/04
- Next message: Boris: "Re: Empty "If Me.Recordset Is Nothing Then" clause causes runtime error 3021 (Access 2003)"
- Previous message: Cor Ligthert: "Re: Copying MS Access object (Forms etc) using VB from 1 db to another"
- Next in thread: Stewart Tanner: "Re: Making text boxes visible with a combobox"
- Reply: Stewart Tanner: "Re: Making text boxes visible with a combobox"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Aug 2004 01:52:45 -0500
I have text a box that become visible when a combobox shows a specified
value("Single"). The on-current event of the Main form the following code
appears:
txb_SingleDate.Visible = IIf(IsNull(cbo_MeetingType.Value), False,
cbo_MeetingType.Value = "single")
This works great when creating a new record or scrolling records although...
I also have a second form that I am using to populate fields in the main
form. (to create new records) When the value is written to the
cbo_MeetingType it appears there but the text boxes do not become visible.
WHY??
Below is the code in the second form that writes to the main form.
Forms!frm_schedules!cbo_MeetingType = txb_MeetingType.Value
Maybe there is a better way.
Any help is appreciated. Thanks
- Next message: Boris: "Re: Empty "If Me.Recordset Is Nothing Then" clause causes runtime error 3021 (Access 2003)"
- Previous message: Cor Ligthert: "Re: Copying MS Access object (Forms etc) using VB from 1 db to another"
- Next in thread: Stewart Tanner: "Re: Making text boxes visible with a combobox"
- Reply: Stewart Tanner: "Re: Making text boxes visible with a combobox"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|