I actually have it all typed on one row, i just typed the example like that to make it easier to read
I tried using Format([PriceAmount],"Currency") but as soon as i finish typing it says Compile error: Expected: end of statement so i switched to FormatCurrency()
Here's all the code exactly as i have it:
Code:
Private Sub cboDepartmentName_AfterUpdate()
Me.cboItemCategory.RowSource = "SELECT DISTINCT ItemCategory FROM tbldbo_MerchandiseProductPrice WHERE ItemCategory <> 'N/A' AND DepartmentName = '" & Me.cboDepartmentName & "'" & "ORDER BY ItemCategory"
End Sub
Code:
Private Sub cboItemCategory_AfterUpdate()
Me.cboProduct.RowSource = "SELECT ProductItemDescription & FormatCurrency([PriceAmount],2) AS Product FROM tbldbo_MerchandiseProductPrice WHERE DepartmentName = '" & Me.cboDepartmentName & "' And ItemCategory = '" & Me.cboItemCategory & "'"
End Sub
So it's an unbound form with 3 unbound combo boxes, the first one is cboDepartmentName, after you select from that dropdown cboItemCategory is updated, once you select from cboItemCategory is when i would like to set cboProduct with the fields and format i listed