What I'm trying to do is something like a master/detail page. One databound listbox opens up another listbox with the corresponding data. I put the following SQL in my recordset properties:
SELECT main.System FROM main, Sites WHERE main.Site_Number = Sites.Site_Number AND (Sites.Site_Name = '?')
I tested the SQL statement by putting in something in place of the ? and it works. So I'm guessing my error is else where. In my source code I have the following:
Sub
Listbox1_onchange()
Name = listbox1.getValue
Recordset2.setParameter 0, name
Recordset2.open
End Sub
When I try displaying the Name variable I get some long sentence so I'm thinking that might be my problem. How would I change the listbox1.getValue values of a bound listbox? Thanks alot.
SELECT main.System FROM main, Sites WHERE main.Site_Number = Sites.Site_Number AND (Sites.Site_Name = '?')
I tested the SQL statement by putting in something in place of the ? and it works. So I'm guessing my error is else where. In my source code I have the following:
Sub
Listbox1_onchange()
Name = listbox1.getValue
Recordset2.setParameter 0, name
Recordset2.open
End Sub
When I try displaying the Name variable I get some long sentence so I'm thinking that might be my problem. How would I change the listbox1.getValue values of a bound listbox? Thanks alot.