Hello Richard I have added our field to my product table called discontinued when I run the query it will only show the active ones but when I used the combo's it still shows the item which I have marked discontinued what have I done wrong Michelle
Michelle Seidelin 2 years ago
Richard just in case I did not make it clear I am running the database as built to level 22 where it is getting the information for the combo's through the product list but does not add it directly and tall you hit the add button just thinking if this was being fed by a query with ProductT in the query with discontinued showing as no so if I change the source of the combo to this query then the product does not show is this the right way to go about it
If you create a query, then add a field later that you want to use to filter that data youd need to update the combo source, so add that discontinued field into your WHERE clause.
Michelle Seidelin 2 years ago
Hello Alex just to confirm that I am doing what you are suggesting and I am not going to muck up the workings of the database as far as the order details there order detail as taught in level 22 you are saying to replace the following which was built into the lesson 22 SELECT [ProductT].[ProductID], [ProductT].[ProductName], [ProductT].[UnitPrice] FROM ProductT; with the query which I called discontinuedQ
Will not do anything until I get this confirmed a lasting I want to do is destroy all my work by doing something that is wrong
It should be fine, if you're worried take a backup of the db first, make a copy of the original SQL and you can always revert it.
As long as the field bound to the original control exists in the new query it should continue working.
If it looks at historic data and you choose a record linked to a Product that is now discontinued it won't show anymore.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.