T
Tony K
I want to know how to have the drop down values of the combo box display
something different than what the box is bound to.
Example:
When the box is not in a 'drop down' state, it will display the Purchase
Order Number (it does this now).
How would I make it display the Purchase Order Number + " | " + SupplierName
when it is in drop down state? Then, when the item is selected it reverts
back to showing just the PO Number in the combo box.
My query that I would use is:
SELECT [Purchase Orders].DateReceived, [Purchase
Orders].DateRequired, [Purchase Orders].EmployeeID, [Purchase
Orders].FreightCharge,
[Purchase Orders].OrderDate, [Purchase
Orders].PurchaseOrderClosed, [Purchase Orders].PurchaseOrderDescription,
[Purchase Orders].PurchaseOrderID,
[Purchase Orders].PurchaseOrderNumber + " | " +
Supplier.SupplierName AS PONum, [Purchase Orders].ShipDate, [Purchase
Orders].ShippingMethodID, [Purchase Orders].SupplierID
FROM ([Purchase Orders] INNER JOIN
Suppliers ON [Purchase Orders].SupplierID =
Suppliers.SupplierID)
WHERE ([Purchase Orders].PurchaseOrderClosed = 0)
I tested this in Access and my column displays it correctly. How would I
implement this into my VB form.
something different than what the box is bound to.
Example:
When the box is not in a 'drop down' state, it will display the Purchase
Order Number (it does this now).
How would I make it display the Purchase Order Number + " | " + SupplierName
when it is in drop down state? Then, when the item is selected it reverts
back to showing just the PO Number in the combo box.
My query that I would use is:
SELECT [Purchase Orders].DateReceived, [Purchase
Orders].DateRequired, [Purchase Orders].EmployeeID, [Purchase
Orders].FreightCharge,
[Purchase Orders].OrderDate, [Purchase
Orders].PurchaseOrderClosed, [Purchase Orders].PurchaseOrderDescription,
[Purchase Orders].PurchaseOrderID,
[Purchase Orders].PurchaseOrderNumber + " | " +
Supplier.SupplierName AS PONum, [Purchase Orders].ShipDate, [Purchase
Orders].ShippingMethodID, [Purchase Orders].SupplierID
FROM ([Purchase Orders] INNER JOIN
Suppliers ON [Purchase Orders].SupplierID =
Suppliers.SupplierID)
WHERE ([Purchase Orders].PurchaseOrderClosed = 0)
I tested this in Access and my column displays it correctly. How would I
implement this into my VB form.