Ali Edwards
Registered User.
- Local time
- Today, 03:50
- Joined
- Apr 19, 2001
- Messages
- 68
I have a form called 'Address Lookup' consisting of a combo box called 'lookup' in the form header and a text box called 'Address' in the form detail. The record source for the form is qry 'address lookup query' and so is the row source for the combo box.
On the After Update for the combo box I have the following code:
Docmd.ApplyFilter , "[Address]=[Forms]![Address Lookup]![Lookup]"
When I open the form and select a name in the 'Lookup' combo the 'Address' field shows the corresponding address details exacly as planned. However, if I then choose another name in the lookup combo the Address doesn't change.
What am I doing wrong?
Thanks
Alistair
On the After Update for the combo box I have the following code:
Docmd.ApplyFilter , "[Address]=[Forms]![Address Lookup]![Lookup]"
When I open the form and select a name in the 'Lookup' combo the 'Address' field shows the corresponding address details exacly as planned. However, if I then choose another name in the lookup combo the Address doesn't change.
What am I doing wrong?
Thanks
Alistair