Hi there Everyone! This is my first post on this forum, and I just started learning MS Access for a few days. I know a little (very little) VBA Excel programming, I thought Access will be easy to handle but I was soooo wrong.
Anyway I would like to learn, and already have an ongoing access project. If someone can help, then please try to help as I am very new and do not know the solution. I do not know how to make this query. 
I have one table (Database table) with a few columns. There are three rows which are relevant in my problem (the rows are called: "Important_0", "Important_1" and "Important_2"). I have also one form (MainForm) in the file. When I run the query I would like to have a message box pop up where I can input the number I am looking for. Then the query should search for the inputed number in all of the three columns, and display the column names where the number was found in the MainForm form. If found in two columns, then display the names of the two columns, if in three then display the name of all the three columns, if not found than display: "Input number not found". I have attached the file as well. Thank you in advance for your help!


I have one table (Database table) with a few columns. There are three rows which are relevant in my problem (the rows are called: "Important_0", "Important_1" and "Important_2"). I have also one form (MainForm) in the file. When I run the query I would like to have a message box pop up where I can input the number I am looking for. Then the query should search for the inputed number in all of the three columns, and display the column names where the number was found in the MainForm form. If found in two columns, then display the names of the two columns, if in three then display the name of all the three columns, if not found than display: "Input number not found". I have attached the file as well. Thank you in advance for your help!