Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

#Error. Why, please?

Discussion in 'Information Technology' started by an, Jul 28, 2006.

Tags:
  1. an

    an
    Expand Collapse
    Guest

    Hi!

    I have an unbound F_Mainform form with one combo box, based in T_XPTO, where
    the Field Size this field to choose, is 100 characters.

    This F_Mainform has one subform with text box to show us the option choosed
    in combo box (in F_Mainform).

    In this text box has in Default Vale:
    =[Forms].[F_Mainform].[cboEstabS].[Column](1)

    Work fine if string wil even have to 50 characters. Contrary case, in text
    box show, in subform, show us the #Error message.

    Why? I woul like the solution to this.

    Tanks in advance.
    an
     
  2. Loading...


  3. Michael H

    Michael H
    Expand Collapse
    Guest

    Hi.

    I don't think you are using the Default Value property correctly. I suggest
    a different method:

    1. Delete the Default Value from the subform's TextBox.
    2. Add a Change event to the main form's ComboBox:
    Private Sub cboEstabS_Change()
    Me!F_Subform.Form!TextBoxName= Me.cboEstabS.Column(1)
    End Sub

    Be sure to change "TextBoxName" to the actual name of the subform's TextBox.

    -Michael



    "an" wrote:

    > Hi!
    >
    > I have an unbound F_Mainform form with one combo box, based in T_XPTO, where
    > the Field Size this field to choose, is 100 characters.
    >
    > This F_Mainform has one subform with text box to show us the option choosed
    > in combo box (in F_Mainform).
    >
    > In this text box has in Default Vale:
    > =[Forms].[F_Mainform].[cboEstabS].[Column](1)
    >
    > Work fine if string wil even have to 50 characters. Contrary case, in text
    > box show, in subform, show us the #Error message.
    >
    > Why? I woul like the solution to this.
    >
    > Tanks in advance.
    > an
    >
    >
     
  4. an

    an
    Expand Collapse
    Guest

    M H,

    Perfect!
    Many thanks for your help.
    Good luck!

    an

    "Michael H" wrote:

    > Hi.
    >
    > I don't think you are using the Default Value property correctly. I suggest
    > a different method:
    >
    > 1. Delete the Default Value from the subform's TextBox.
    > 2. Add a Change event to the main form's ComboBox:
    > Private Sub cboEstabS_Change()
    > Me!F_Subform.Form!TextBoxName= Me.cboEstabS.Column(1)
    > End Sub
    >
    > Be sure to change "TextBoxName" to the actual name of the subform's TextBox.
    >
    > -Michael
    >
    >
    >
    > "an" wrote:
    >
    > > Hi!
    > >
    > > I have an unbound F_Mainform form with one combo box, based in T_XPTO, where
    > > the Field Size this field to choose, is 100 characters.
    > >
    > > This F_Mainform has one subform with text box to show us the option choosed
    > > in combo box (in F_Mainform).
    > >
    > > In this text box has in Default Vale:
    > > =[Forms].[F_Mainform].[cboEstabS].[Column](1)
    > >
    > > Work fine if string wil even have to 50 characters. Contrary case, in text
    > > box show, in subform, show us the #Error message.
    > >
    > > Why? I woul like the solution to this.
    > >
    > > Tanks in advance.
    > > an
    > >
    > >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page