Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2004
    Posts
    924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with Run time error message (2000)

    I appear to be geting an error message and cannot work out why this is, this is the coding:

    Private Sub Combo43_AfterUpdate()
    Dim strOwner As String
    If IsNull(Me.Combo43) Then
    Me.Current_Owner = Null
    Else
    strOwner = Split(Me.Combo43, ",")(0)
    Me.Current_Owner = DLookup("[chinook names review]", _
    "[chinook names review]", _
    "abbreviation =" & Chr(34) & strOwner & Chr(34))
    Me.[Date given doc] = Int(Now)
    End If


    see attachment for error.

    Any help would be appreciated.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Help with Run time error message (2000)

    You're trying to look up a value in the table or query "chinook names review". The error message indicates that abbreviation is not a field in this table or query.

    BTW: you're trying to look up a field with the same name as the table/query. Is that correct?

  3. #3
    5 Star Lounger
    Join Date
    Mar 2004
    Posts
    924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Help with Run time error message (2000)

    Thanks for that Hans.

Posting Permissions

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