Hi all,
On one of my forms I have a post code finder. You type in a postcode and click search. I have a piece of VB code which queries a web server for all addresses within that postcode.
The web server returns a result and then the VB code parses the result and returns it to a format suitable for the row source property of a combo box.
This means that all address results are listed in the combo box.
As an example, here are five results for the EH3 9DW postcode that are returned to the row source property of the combo box..
"EH3 9DW 50/1 Lady Lawson Street, EDINBURGH";
"EH3 9DW 40-44 Lady Lawson Street, EDINBURGH";
"EH3 9DW 46-54 Lady Lawson Street, EDINBURGH";
"EH3 9DW 50/2 Lady Lawson Street, EDINBURGH";
"EH3 9DW 50/3 Lady Lawson Street, EDINBURGH";
When I click the dropdown and then (for example) click on the first result I want VB to populate txtPostcode with the post code from the result, it should then populate txtStreet with "50/1 Lady Lawson Street" and then populate txtTown with "Edinburgh".
Anyone haven any clever ideas, or can point me the right direction
THANKS!
On one of my forms I have a post code finder. You type in a postcode and click search. I have a piece of VB code which queries a web server for all addresses within that postcode.
The web server returns a result and then the VB code parses the result and returns it to a format suitable for the row source property of a combo box.
This means that all address results are listed in the combo box.
As an example, here are five results for the EH3 9DW postcode that are returned to the row source property of the combo box..
"EH3 9DW 50/1 Lady Lawson Street, EDINBURGH";
"EH3 9DW 40-44 Lady Lawson Street, EDINBURGH";
"EH3 9DW 46-54 Lady Lawson Street, EDINBURGH";
"EH3 9DW 50/2 Lady Lawson Street, EDINBURGH";
"EH3 9DW 50/3 Lady Lawson Street, EDINBURGH";
When I click the dropdown and then (for example) click on the first result I want VB to populate txtPostcode with the post code from the result, it should then populate txtStreet with "50/1 Lady Lawson Street" and then populate txtTown with "Edinburgh".
Anyone haven any clever ideas, or can point me the right direction
THANKS!