Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: caption property error

    I received this Error Message in MS Access 2000 when I click on a button and sending the values in two textboxes to procedure. I'm not sure what the error message means.

    You entered an expression that has an invalid reference to the property Caption.
    OK

    Thank you.

  2. #2
    Join Date
    Sep 2003
    Location
    T.O.
    Posts
    326
    Text that I use as values which reference Captions is a property of labels. How are you passing these in?
    All code ADO/ADOX unless otherwise specified.
    Mike.

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb Re: caption property error

    Originally posted by alicejwz
    I received this Error Message in MS Access 2000 when I click on a button and sending the values in two textboxes to procedure. I'm not sure what the error message means.

    You entered an expression that has an invalid reference to the property Caption.
    OK

    Thank you.
    The TextBox has no Caption property, insted a Value one. So, when you pass a value to a TextBox use the Value Property [Which needs the set Focus of that TextBox] or more efficient use the TextBox name without any properties
    Examples
    text1.SetFocus
    text1.Value= "You must set the Focus"

    text1= "You don't need to set the Focus"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •