I have a sql statement which reads some data from an access database.
for thw where clause I would like to get it's value from one of my forms but I can't use document.form.listname.options[selectedIndex] to access my form in sql where caluse.
How should I perform that.
Here is the code:
Recordset2.Source = "SELECT BusName FROM BusinessInfo WHERE City = '"+ documents.form1.select.options[selectedIndex] +"'";
Thanks
for thw where clause I would like to get it's value from one of my forms but I can't use document.form.listname.options[selectedIndex] to access my form in sql where caluse.
How should I perform that.
Here is the code:
Recordset2.Source = "SELECT BusName FROM BusinessInfo WHERE City = '"+ documents.form1.select.options[selectedIndex] +"'";
Thanks