Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error 424 - Object Required?

Status
Not open for further replies.

smsmail

Programmer
Aug 11, 2010
105
US
Hello

I am getting a runtime error on the highlighted (bold) code. I have been looking at it too long..any idea of what I am doing wrong?

Thanks in advance for your help!

Code:
Private Sub Colors_AfterUpdate()

    If Me.Colors = "Yes" Then
       Dim strOtherValue As String
       strOtherValue = InputBox("Please specify COLORS for Mailer", "Specific colors for mailer")
    Else
       Exit Sub
    End If
    
    If strOtherValue = "" Then
       Me.Colors = "No"
       strColorDescription = ""
       ColorDescription.Value = ""
    Else
       strColorDescription = strOtherValue
      [b]ColorDescription.Value = strOtherValue[/b]
       If IsNull(Me.Comments) Then
          Me.Comments = Me.Comments & "Specific Colors for mailer: " & strOtherValue & vbCrLf
       Else
          Me.Comments = Me.Comments & vbNewLine & "Specific Colors for mailer: " & strOtherValue & vbCrLf
       End If
    End If

    
    
End Sub
 
What is ColorDescription ?

Just a guess:
Me!ColorDescription.Value = strOtherValue

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi PHV,

Thanks so very much! It worked. Me!ColorDescription.Value = strOtherValue

Have a great day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top