Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    87

    Unanswered: Borderstyle setting in report

    I want to change textbox borderstyle property in report, if there is certain value in that textbox (e.g. "Name")

    I write vba code in reports detail section:

    "If cbotextbox = "Name" Then
    cbotextbox.borderstyle = 1
    End If

    But it won't work....

    if i type

    me.cbotextbox then it shows error "can find such object" ...but it is in my report...

  2. #2
    Join Date
    Jan 2006
    Location
    Washington, D.C
    Posts
    29
    Try:

    If cbotextbox.value = "Name" Then
    cbotextbox.borderstyle = 1
    End If

    if that dosen't work then try:
    If cbotextbox.value = "Name" Then
    cbotextbox.borderstyle = "1"
    End If

  3. #3
    Join Date
    Oct 2005
    Posts
    87
    Ahh problem was that it was in subform, so I had to write code elsewhere

    Thanks

Posting Permissions

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