T
Tal
Thanks in advance for all help received!!
I have a combo box that I want to populate based on the current record but
with data from a different table. So I have created a DLookup (only one so
far as a test) and I am getting a strange almost oxymoronic error message,
because it's getting the value, (which is listed in the error message!!!),
but doesn't think it's getting the value. I don't know if it matters, but the
tblClients is a linked table.
Help!!
Here's my VBA:
Private Sub cboKeyDinnerStatus_AfterUpdate()
Dim dlookClientLastName As String
dlookClientLastName = DLookup("[txtClientLastName]", "tblClients",
"[keyClient] = " & Me.keyClient)
Me.cboReceiptTo.RowSource = dlookClientLastName
Me.cboReceiptTo.Requery
End Sub
And here's the crazy error message:
The record source 'Adler' specified on this form or report does not exist.
The name of the recordsource may be misspelled, the recordsource was deleted
or renamed, or the recordsource exists in a different database.
In the Form or Report's Design view, display the property sheet by clicking
the Properties button, and then set the RecordSource property to an existing
table or query.
I have a combo box that I want to populate based on the current record but
with data from a different table. So I have created a DLookup (only one so
far as a test) and I am getting a strange almost oxymoronic error message,
because it's getting the value, (which is listed in the error message!!!),
but doesn't think it's getting the value. I don't know if it matters, but the
tblClients is a linked table.
Help!!
Here's my VBA:
Private Sub cboKeyDinnerStatus_AfterUpdate()
Dim dlookClientLastName As String
dlookClientLastName = DLookup("[txtClientLastName]", "tblClients",
"[keyClient] = " & Me.keyClient)
Me.cboReceiptTo.RowSource = dlookClientLastName
Me.cboReceiptTo.Requery
End Sub
And here's the crazy error message:
The record source 'Adler' specified on this form or report does not exist.
The name of the recordsource may be misspelled, the recordsource was deleted
or renamed, or the recordsource exists in a different database.
In the Form or Report's Design view, display the property sheet by clicking
the Properties button, and then set the RecordSource property to an existing
table or query.