Making text boxes visible with a combobox

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff (JeffKlein_at_Associatedoffices.com)
Date: 08/24/04


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



Relevant Pages

  • Re: Transferring data between controls on form2 and datagrid on form1
    ... When the button is clicked a second form opens. ... > combobox and text controls on this second form have been suitably ... private ComboBox domainObjectComboBox; ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Only show checked box, dont leave empty space
    ... The check boxes on the form are "controls". ... Run Time Error 438 ... see the checkboxes that have been checked. ... How is the check box's data getting to the second form? ...
    (microsoft.public.access.formscoding)
  • Re: Strange stLinkCriteria behaviour on command button
    ... open the Form "Patient Details". ... Field "PatientID" rather than the ComboBox. ... > the first form without going to the second form is that I want to be able ... Form you switch to shows the Current Record of the Form you switch from. ...
    (microsoft.public.access.forms)
  • Textbox to array to combobox
    ... How can I write an array to place them in a combobox?, ... EquationTbl done with query ... from the formula and the second form into a seperate table, ... calculations at that location from the third form. ...
    (microsoft.public.access.modulesdaovba)
  • Re: VB.NET Problem
    ... The second form should be created from the form template 'Dialog' and should be called using ShowDialog. ... The call will return an OK or Cancel result, so your code in the calling form can assume that if OK is returned then the called form will have all its values properly filled in. ... The second form has the code to create in Customer (New Customer ... Combobox of the first form should updated (Means add the new ...
    (microsoft.public.dotnet.languages.vb)