Re: another multi-select combo box mess....
- From: "Iona" <hmcgregor@xxxxxxxxxxxxxxxx>
- Date: 23 Jul 2006 16:59:48 -0700
Here is the error message:
Compile error:
Method or datamember not found
cheers & thanx
Iona wrote:
Ok, thanks Keith, I have remedied this (via some database corruption!
argh), however
I find that the requery command is not working, the listbox is holding
onto the selected values no matter what record is on the form.
I have tried
Me.lbContactTypes.Requery
Which it will accept,
however, if I use
Me.tbContactTypes.Requery
It gives me an error message.
Likewise It does not display what records have been selected after you
leave the record and then return to it.
sorry about the headache of this, I just really feel that the
continuous form solution won't work for my client.
any ideas would be appreciated.
regards,
Iona
Keith Wilby wrote:
"Iona" <hmcgregor@xxxxxxxxxxxxxxxx> wrote in message
news:1153438840.950158.184030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ok ContactID is null
There's your problem, you need to find out why it's null. If "Me.ContactID"
is a text box on your form then it needs to contain a value in order for
your code to work. If null is an acceptable state then you need to handle
the null condition in your code, perhaps something like:
If IsNull(Me.ContactID) Then
rs.FindFirst "[ContactType] = " & lngCondition
Else
rs.FindFirst "[ContactID] = " & Me.ContactID & " AND " & "[ContactType]
= " & lngCondition
End If
Keith.
.
- References:
- another multi-select combo box mess....
- From: Iona
- Re: another multi-select combo box mess....
- From: Keith Wilby
- Re: another multi-select combo box mess....
- From: Iona
- Re: another multi-select combo box mess....
- From: Iona
- Re: another multi-select combo box mess....
- From: Keith Wilby
- Re: another multi-select combo box mess....
- From: Iona
- Re: another multi-select combo box mess....
- From: Keith Wilby
- Re: another multi-select combo box mess....
- From: Iona
- Re: another multi-select combo box mess....
- From: Keith Wilby
- Re: another multi-select combo box mess....
- From: Iona
- another multi-select combo box mess....
- Prev by Date: Re: another multi-select combo box mess....
- Next by Date: Suddenly CAN'T DELETE / EDIT Records ???
- Previous by thread: Re: another multi-select combo box mess....
- Next by thread: Query based on Form
- Index(es):
Relevant Pages
|