furtivevole
Technical User
(With apolgies for duplication, I've also posted this to one of the Access forums, but re-post it here because of the vbScript content)
I have taken over maintenance of someone else's .asp pages. These use vbScript (new to me), and there are quite a few other unknowns which makes it trickier/riskier to try things out than it would usually be.
One page is a web-based form, from which (among other things) the user has to select a Customer via a list box. Currently this is from a hard-coded list (i.e. with a series of <option>cust_name</option> tags). The user cannot create a new customer on the fly, so a combo box is not required.
The requirement is instead to read the customer list dynamically from an Access table.
I'm stuck on how best to do this. For instance, using vbScript, if I read the table into an array (declared as public), could I then use this to populate the HTML list box - or is there a more elegant method? Depends presumably on the scope of the array variable outside the vbScript code.
Any ideas please?
Linnet
I have taken over maintenance of someone else's .asp pages. These use vbScript (new to me), and there are quite a few other unknowns which makes it trickier/riskier to try things out than it would usually be.
One page is a web-based form, from which (among other things) the user has to select a Customer via a list box. Currently this is from a hard-coded list (i.e. with a series of <option>cust_name</option> tags). The user cannot create a new customer on the fly, so a combo box is not required.
The requirement is instead to read the customer list dynamically from an Access table.
I'm stuck on how best to do this. For instance, using vbScript, if I read the table into an array (declared as public), could I then use this to populate the HTML list box - or is there a more elegant method? Depends presumably on the scope of the array variable outside the vbScript code.
Any ideas please?
Linnet