How to use Databindings on Combo Box?
Posted: Thu Jan 22, 2009 4:57 pm
The online help manual doesn't specify what values go in what fields of the Data Bindings section for a combo box.
In short, I set up a Datasource like this "Select vendorID, vendorName from tblVendor"
The combo box allows the user to select a vendor from the drop down.
The report's datasource looks like this "select * from tblVendor WHERE vendorID=@vendorID"
I set up a parameter called @vendorID and attached it to the comboBox like this: lstVendor.SelectedItem
The comboBox DataBindings, and I'm just guessing has
Items = VendorTable.vendorName
SelectedItem = VendorTable.vendorID
Which parameter should vendorID be bound to? SelectedItem, SelectedValue, or TagValue? And then on the parameter @vendorID, what should the fx be set to?
Is there any updated doc on this function?????
In short, I set up a Datasource like this "Select vendorID, vendorName from tblVendor"
The combo box allows the user to select a vendor from the drop down.
The report's datasource looks like this "select * from tblVendor WHERE vendorID=@vendorID"
I set up a parameter called @vendorID and attached it to the comboBox like this: lstVendor.SelectedItem
The comboBox DataBindings, and I'm just guessing has
Items = VendorTable.vendorName
SelectedItem = VendorTable.vendorID
Which parameter should vendorID be bound to? SelectedItem, SelectedValue, or TagValue? And then on the parameter @vendorID, what should the fx be set to?
Is there any updated doc on this function?????