G
Guest
I have a ComboBox (cboSupplierName) that will list supplier names and I would like it to perform a SQL Select statment to find that record from the Supplier Contact Information table and Display the Supplier ID and Email in Text boxes on the form. Here is the code I have for getting the value for one of the text box txtSupplierID
Dim Supplierid As Strin
Supplierid = "SELECT [Supplier Contact Information].[Supplier_Number]" &
"FROM [Supplier Contact Information] " &
"WHERE [Supplier Contact Information].[Supplier_Name] = '" & cboSupplierName.Value & "';
txtSupplierID.Value = Supplieri
For some reason the SQL stament will not execute. The Syntax of the stament is correct. Please help.
Dim Supplierid As Strin
Supplierid = "SELECT [Supplier Contact Information].[Supplier_Number]" &
"FROM [Supplier Contact Information] " &
"WHERE [Supplier Contact Information].[Supplier_Name] = '" & cboSupplierName.Value & "';
txtSupplierID.Value = Supplieri
For some reason the SQL stament will not execute. The Syntax of the stament is correct. Please help.